コード例 #1
0
ファイル: collection.php プロジェクト: 453111208/bbc
 /**
  * Pulls an item from the collection.
  *
  * @param  mixed  $key
  * @param  mixed  $default
  * @return mixed
  */
 public function pull($key, $default = null)
 {
     return Arr::pull($this->items, $key, $default);
 }
コード例 #2
0
ファイル: helpers.php プロジェクト: 453111208/bbc
 function array_column($array, $key)
 {
     return Arr::pluck($array, $key);
 }