Open c9s opened 9 years ago
https://github.com/laravel/framework/blob/master/src%2FIlluminate%2FSupport%2FArr.php#L143
/** * Get a subset of the items from the given array. * * @param array $array * @param array|string $keys * @return array */ public static function only($array, $keys) { return array_intersect_key($array, array_flip((array) $keys)); }
https://github.com/laravel/framework/blob/master/src%2FIlluminate%2FSupport%2FArr.php#L143