app/Http/Requests/Api/Admin/User/UpdateRequest.php
/**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
Determine if the user is authorized to make this request.
@return bool
Determine if the user is authorized to make this request . @return bool
public function authorize(): bool
    {
        if (auth()->user()->admin->role >= Admin::Admin->value) {
            return true;
        }
        return false;
    }
public function authorize ( ) : bool { if ( auth ( ) -> user ( ) -> admin -> role >= Admin :: Admin -> value ) { return true ; } return false ; }
Determine if the user is authorized to make this request.
Determine if the user is authorized to make this request .