<?php
 namespace App\Http\Requests\Admin\PermissionManagement; use Illuminate\Foundation\Http\FormRequest; class PermissionManagementIndexRequest extends FormRequest { public function authorize(): bool { return $this->user()->can('viewAny', \Spatie\Permission\Models\Permission::class); } public function rules(): array { return [ ]; } } 