protected function getAllowedActions()
    {
        $allowed = $this->getAssignedActions()->filter(function (Action $action) {
            return $action->pivot->provision === 'pass';
        })->pluck('slug')->all();

        return $allowed;
    }
protected function getAllowedActions()
    {
        $allowed = $this->getAssignedActions()->filter(function (Action $action) {
            return $action->pivot->provision === 'pass';
        })->pluck('slug')->all();

        return $allowed;
    }
protected function getAllowedActions ( ) { $ allowed = $ this -> getAssignedActions ( ) -> filter ( function ( Action $ action ) { return $ action -> pivot -> provision === 'pass' ; } ) -> pluck ( 'slug' ) -> all ( ) ; return $ allowed ; }
Get only assigned actions that are allowed

@return array
Get only assigned actions that are allowed