Remove Nested Values in Laravel with data_forget Function
Need to remove values from deeply nested arrays? Laravel's data_forget function brings a convenient way to handle nested data removal using simple dot notation.
Basic Usage
Remove a single nested value:
$data = ['products' => ['desk' => ['price' => 100]]];
data_forget(