public function get($key, $default = null) { return Arr::get($this->items, $key, $default); }
public function testCanFallbackClosure() { $array = ['foo' => ['bar' => 'bis']]; $under = Arr::get($array, 'ter', function () { return 'closure'; }); $this->assertEquals('closure', $under); }