11 use \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Support\Arr as IlluminateArr;
20 class Arr extends IlluminateArr {
27 return parent::accessible(
$value );
35 public static function add( $array, $key,
$value ) {
36 return parent::add( $array, $key,
$value );
45 return parent::collapse( $array );
54 return parent::crossJoin( $arrays );
62 public static function divide( $array ) {
63 return parent::divide( $array );
71 public static function dot( $array, $prepend =
'' ) {
72 return parent::dot( $array, $prepend );
84 public static function undot( $array ) {
87 foreach ( $array as $key =>
$value ) {
88 self::set( $results, $key,
$value );
99 public static function get( $array, $key, $default = null ) {
100 return parent::get( $array, $key, $default );
108 public static function except( $array, $keys ) {
109 return parent::except( $array, $keys );
117 public static function exists( $array, $key ) {
118 return parent::exists( $array, $key );
126 public static function first( $array, callable $callback = null, $default = null ) {
127 return parent::first( $array, $callback, $default );
135 public static function flatten( $array, $depth = INF ) {
136 return parent::flatten( $array, $depth );
144 public static function forget( &$array, $keys ) {
145 return parent::forget( $array, $keys );
153 public static function has( $array, $keys ) {
154 return parent::has( $array, $keys );
162 public static function isAssoc( array $array ) {
163 return parent::isAssoc( $array );
171 public static function last( $array, callable $callback = null, $default = null ) {
172 return parent::last( $array, $callback, $default );
180 public static function only( $array, $keys ) {
181 return parent::only( $array, $keys );
190 return parent::pluck( $array,
$value, $key );
199 return parent::prepend( $array,
$value, $key );
207 public static function pull( &$array, $key, $default = null ) {
208 return parent::pull( $array, $key, $default );
216 public static function random( $array, $number = null ) {
217 return parent::random( $array, $number );
225 public static function set( &$array, $key,
$value ) {
226 return parent::set( $array, $key,
$value );
235 return parent::shuffle( $array );
243 public static function sort( $array, $callback ) {
244 return parent::sort( $array, $callback );
253 return parent::sortRecursive( $array );
261 public static function where( $array, callable $callback ) {
262 return parent::where( $array, $callback );
271 return parent::wrap(
$value );
static except( $array, $keys)
{}
static undot( $array)
Convert a flattened "dot" notation array into an expanded array.
static prepend( $array, $value, $key=null)
{}
static exists( $array, $key)
{}
static collapse( $array)
{}
static forget(&$array, $keys)
{}
static pluck( $array, $value, $key=null)
{}
static crossJoin(... $arrays)
{}
static first( $array, callable $callback=null, $default=null)
{}
static where( $array, callable $callback)
{}
static pull(&$array, $key, $default=null)
{}
static has( $array, $keys)
{}
static flatten( $array, $depth=INF)
{}
static dot( $array, $prepend='')
{}
static isAssoc(array $array)
{}
static sortRecursive( $array)
{}
static random( $array, $number=null)
{}
We use Laravel's Arr class for all array helper methods.
static add( $array, $key, $value)
{}
static last( $array, callable $callback=null, $default=null)
{}
static sort( $array, $callback)
{}
static accessible( $value)
{}
static only( $array, $keys)
{}
static shuffle( $array)
{}