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