I'm trying to setup some custom routing in Laravel, as this is what I'm more familiar with. However, when I try and retrieve data from a collection, to pass to a view, I'm having an issue;
$debug = Entry::all()->first(); dd($debug->data);
This is just an example, but $debug will be populated with all the information I want, yet when I try and access the data property on $debug, I get a null response. If I just dd($debug), there is a data property containing everything I need. $debug is definately an object, too.
I must be missing something super obvious here but I can't get it; could anyone advise how I access properties against an object?
Thanks in advance.