 b3501be6ec
			
		
	
	
		b3501be6ec
		
			
		
	
	
	
	
		
			
			* 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
		
	
	
		
			344 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			344 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Http\Requests\Api\Application\Servers;
 | |
| 
 | |
| use App\Services\Acl\Api\AdminAcl;
 | |
| use App\Http\Requests\Api\Application\ApplicationApiRequest;
 | |
| use App\Models\Server;
 | |
| 
 | |
| class GetServerRequest extends ApplicationApiRequest
 | |
| {
 | |
|     protected ?string $resource = Server::RESOURCE_NAME;
 | |
| 
 | |
|     protected int $permission = AdminAcl::READ;
 | |
| }
 |