I know accessing object's properties dynamically using string e.g.
$obj->{$string};
But what about objects themselves?
Like I have string
$obj = '$model->property';
How to use this?
For example in if statement, to have something like
if($model->property) but by using this string?
Tried if({$obj}), if(${$obj})... nothing works.
I don't know if it even possible, but maybe?
{{ dd(eval('$model->id;')) }}gives me null hmmm. Idk, gives me only null all time{{ dd($model->id) }}returns me 77 and{{ dd(eval('$model->id;')) }}null