コード例 #1
0
ファイル: collection.php プロジェクト: 453111208/bbc
 /**
  * Get an array with the values of a given key.
  *
  * @param  string  $value
  * @param  string  $key
  * @return static
  */
 public function pluck($value, $key = null)
 {
     return new static(Arr::pluck($this->items, $value, $key));
 }
コード例 #2
0
ファイル: helpers.php プロジェクト: 453111208/bbc
 function array_column($array, $key)
 {
     return Arr::pluck($array, $key);
 }