Пример #1
0
 /**
  * Get a subset of the items from the given array.
  *
  * @param array        $array
  * @param array|string $keys
  *
  * @return array
  *
  * @author Krisan Alfa Timur <*****@*****.**>
  */
 function array_only($array, $keys)
 {
     return Arr::only($array, $keys);
 }
Пример #2
0
 /**
  * Get a list of array which only if the key is exists on the given argument.
  *
  * @param array $attributes List of array key you want to get from your attributes.
  *
  * @see Arr::only()
  *
  * @return array
  */
 public function only(array $attributes)
 {
     return Arr::only($this->attributes, $attributes);
 }