app/Http/Requests/AccessControll/StoreRoleRequest.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()
    {
        return auth()->user()->hasRole(['admin']);
    }
public function authorize ( ) { return auth ( ) -> user ( ) -> hasRole ( [ 'admin' ] ) ; }
Determine if the user is authorized to make this request.
Determine if the user is authorized to make this request .