Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Http\Requests\Api\Admin;
use Illuminate\Foundation\Http\FormRequest;
abstract class AdminApiRequest extends FormRequest
{
protected $permission;
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return in_array('admin.' . $this->permission, $this->instance()->attributes->get('api_key_permissions', []));
}
/**
* Default set of rules to apply to API requests.
*/
public function rules(): array
{
return [];
}
}