22 lines
418 B
PHP
22 lines
418 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
final class AdminRolePermissionSyncRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'permission_slugs' => ['required', 'array'],
|
|
'permission_slugs.*' => ['string', 'max:128'],
|
|
];
|
|
}
|
|
}
|