--- title: 'You can use the data_get() method to safely access a nested array value' tweet_id: '1461703836553265154' thread_slug: weekly-thread-2021-46 author_username: mattkingshott images: - 'https://pbs.twimg.com/media/FEZJDDbWYAE2fiL.jpg' created_at: 2021-11-19T14:32:06+00:00 slug: 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.