The `Arr::dot()` method in Laravel 11.x flattens a multi-dimensional array into a single-level array using dot notation for the keys.
Example Usage of `Arr::dot()`
use Illuminate\Support\Arr; $array = [ 'user' => [ 'name' => 'John Doe', 'email' => 'john@example.com', 'address' => [ 'city' => 'New York', 'zip' => '10001' ] ] ]; $flattened = Arr::dot($array); print_r($flattened);
Output:-
Array ( [user.name] => John Doe [user.email] => john@example.com [user.address.city] => New York [user.address.zip] => 10001 )