Answer the question
In order to leave comments, you need to log in
How to get the value of an object in Laravel 3.9?
An array of objects comes in, I can’t filter and select the desired value as in the 5th Laravel.
And there is nothing special in the docks.
array (size=1)
0 =>
object(stdClass)[567]
public 'id' => string '51' (length=2)
public 'title' => string 'Видео' (length=10)
public 'alias' => string 'video' (length=5)
public 'path' => string 'video' (length=5)
dd(object_get($foldersFiltered, 'id' . 51));
// null
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question