You can use the data_get() method to safely access a nested array value

You can use the data_get() method to safely access a nested array value

💡#Laravel Tip: Dealing with deeply-nested arrays can result in missing key / value exceptions. Fortunately, Laravel's data_get() helper makes this easy to avoid. It also supports deeply-nested objects.

We're writing a book, you can get it for free here.