0

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?

Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173

1 Answers1

0

For know I come up with $model->getAttributes()['foo'] syntax. However I guess there should be a better way to achieve that.

Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173