I have an array that I return from my controller to my view.
If I enter the following:
{{ $subpage["name"] }}
Laravel throws an error (undefinded index: name).
However, when I use:
{{ $subpage }}
I get this result:
[{"id":1,"name":"Additional Information","category":"General","link":"additionalinfo","created_at":"-0001-11-30 00:00:00","updated_at":"-0001-11-30 00:00:00"}]
So I really don't see what I'm doing wrong?
Framework: Laravel 5