$array = [ 'users' => [ 'admin' => [ 'name' => 'John Doe', 'email' => 'john@example.com', ], 'user' => [ 'name' => 'Jane Doe', 'email' => 'jane@example.com', ], ], ];
Illuminate\Support\Arr::forget($array, 'users.admin.email');
[ 'users' => [ 'admin' => [ 'name' => 'John Doe', ], 'user' => [ 'name' => 'Jane Doe', 'email' => 'jane@example.com', ], ], ];This method is part of the `illuminate/support` package, which provides various utility classes and functions for Laravel applications.