Laravel: Accessing Arrays & Objects

Marcel Domke
3 min readJan 6, 2020

From my experience of working with PHP, it can be really painful if you work with objects and arrays. One of the many errors in PHP is the “Undefined Index” notice. I assume that every developer encountered that already. There are several ways of preventing this in PHP, and besides the general and probably already known ways, I want to show you how laravel can support you there, by using the build-in array and object helpers.

--

--

Marcel Domke

Tech Lead — Control Panels at ABOUT YOU GmbH Employed since 01.06.2015