protected function hasPermission()
    {
        $request = $this->request;
        $do = $this->getAction('can');

        return ! $this->forbiddenRoute() && $request->user()->can($do);
    }
protected function hasPermission()
    {
        $request = $this->request;
        $do = $this->getAction('can');

        return ! $this->forbiddenRoute() && $request->user()->can($do);
    }
protected function hasPermission ( ) { $ request = $ this -> request ; $ do = $ this -> getAction ( 'can' ) ; return ! $ this -> forbiddenRoute ( ) && $ request -> user ( ) -> can ( $ do ) ; }
Check if user has requested route permissions.

@return bool
Check if user has requested route permissions .