When there is a getter method on a model class how can I access to its original value?
e.g if there is a public function getFooAttribute(){return 4;)}
method in the model how to get raw table column value foo
?
When there is a getter method on a model class how can I access to its original value?
e.g if there is a public function getFooAttribute(){return 4;)}
method in the model how to get raw table column value foo
?
For know I come up with $model->getAttributes()['foo']
syntax.
However I guess there should be a better way to achieve that.