That does not change anything.
If I put up an empty function, I get the same error.
function __exists(&$var) { }
I cannot pass any of laravel object properties by reference. Is this true?
I have an answer: This is not possible due to PHP restrictions.
Four other possibilities exist:
__exists($model->attributes['property'])
isset($model->property) && __exists($model->property)
__exists(@$model->property)
@__exists($model->property)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community