1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-use-the-data-get-method-to-safely-access-a-nested-array-value.md
2021-11-19 16:10:01 +01:00

11 lines
No EOL
569 B
Markdown

---
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.