Illuminate\Support\Collection::all PHP Method

all() public method

Get all of the items in the collection.
public all ( ) : array
return array
    public function all()
    {
        return $this->items;
    }

Usage Example

コード例 #1
0
ファイル: Manager.php プロジェクト: ndrx-io/elude
 /**
  * @param GrantableInterface $grantable
  *
  * @return array
  */
 public function getAllPermissions(GrantableInterface $grantable)
 {
     if (is_null($this->permissions) || $this->permissions->isEmpty()) {
         $this->initialize($grantable);
     }
     $result = $this->permissions->all();
     array_filter($result, function ($item) {
         return $item;
     });
     return array_keys($result);
 }
All Usage Examples Of Illuminate\Support\Collection::all