Dingo\Api\Http\FormRequest::failedAuthorization PHP Method

failedAuthorization() protected method

Handle a failed authorization attempt.
protected failedAuthorization ( ) : void
return void
    protected function failedAuthorization()
    {
        if ($this->container['request'] instanceof Request) {
            throw new HttpException(403);
        }
        parent::failedAuthorization();
    }