mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 10:06:51 +01:00 
			
		
		
		
	* use RESOURCE_NAME for requests * use RESOURCE_NAME for transformers * add permissions field to api key * add migration for new permissions field * update tests * remove debug log * set column type to "json" * remove default attribute to fix tests * fix default value for permissions * fix after merge * fix after merge * allow to "register" custom permissions * add "role" to default resource names * fix after merge * fix phpstan * fix migrations
		
			
				
	
	
		
			15 lines
		
	
	
		
			368 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			368 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Http\Requests\Api\Application\DatabaseHosts;
 | 
						|
 | 
						|
use App\Services\Acl\Api\AdminAcl;
 | 
						|
use App\Http\Requests\Api\Application\ApplicationApiRequest;
 | 
						|
use App\Models\DatabaseHost;
 | 
						|
 | 
						|
class GetDatabaseHostRequest extends ApplicationApiRequest
 | 
						|
{
 | 
						|
    protected ?string $resource = DatabaseHost::RESOURCE_NAME;
 | 
						|
 | 
						|
    protected int $permission = AdminAcl::READ;
 | 
						|
}
 |