$array = [ 'foo' => [ 'bar' => [ 'baz' => 'value' ] ] ];
use Illuminate\Support\Arr; $value = Arr::get($array, 'foo.bar.baz');
use Illuminate\Support\Arr; Arr::set($array, 'foo.bar.baz', 'new value');Here, we use the `set()` method to set the value of 'foo.bar.baz' to 'new value'. The Arr path library is part of the Laravel framework, specifically the `illuminate/support` package. It can be installed using Composer by running `composer require illuminate/support`.