App\Http\Requests\CreatePaymentRequest::authorize PHP Method

authorize() public method

Determine if the user is authorized to make this request.
public authorize ( ) : boolean
return boolean
    public function authorize()
    {
        return $this->user()->can('create', ENTITY_PAYMENT);
    }
CreatePaymentRequest