Say I have a model Foo and I'm mutating an attribute getter, like so:
class Foo extends Model
{
protected $table = 'foo';
public function getSomeBarAttribute($value)
{
return some_function($value);
}
}
Is there a way to access the attribute's raw value, pre-mutation?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1JoGCnY
via IFTTT
Aucun commentaire:
Enregistrer un commentaire