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