Support the ongoing development of Laravel.io →
posted 8 years ago
Eloquent
Last updated 2 years ago.
0

Get rid of the trim function

0

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?

0

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)
Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

vielhuber vielhuber Joined 30 Sep 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.