example-app/app/Http/Requests/Doctor/UpdateDoctorRequest.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()
    {
        abort_if(Gate::denies('doctor_edit'), Response::HTTP_FORBIDDEN, '403 Forbidden');
        return true;
    }
public function authorize ( ) { abort_if ( Gate :: denies ( 'doctor_edit' ) , Response :: HTTP_FORBIDDEN , '403 Forbidden' ) ; return true ; }
Determine if the user is authorized to make this request.
Determine if the user is authorized to make this request .
//Create middleware from kernel at here