Illuminate\Support\Collection::all PHP Метод

all() публичный Метод

Get all of the items in the collection.
public all ( ) : array
Результат array
    public function all()
    {
        return $this->items;
    }

Usage Example

Пример #1
0
 /**
  * @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