public function getAssignedActions()
    {
        $assigned = $this->roles->map(
            function (Role $role) {
                return $role->actions;
            }
        )->flatten(1)->merge($this->actions()->get());

        return $assigned;
    }
public function getAssignedActions()
    {
        $assigned = $this->roles->map(
            function (Role $role) {
                return $role->actions;
            }
        )->flatten(1)->merge($this->actions()->get());

        return $assigned;
    }
public function getAssignedActions ( ) { $ assigned = $ this -> roles -> map ( function ( Role $ role ) { return $ role -> actions ; } ) -> flatten ( 1 ) -> merge ( $ this -> actions ( ) -> get ( ) ) ; return $ assigned ; }
Get all assigned actions

@return \Illuminate\Support\Collection
Get all assigned actions