laravel get value without a model name code example
Example: get original name without mutant model laravel
Inside your model file:
1. In laravel older versions (5.x and older):
// that skips mutators
$this->getOriginal('name');
2. In laravel latest versions (6.x and above):
// that skips mutators
$model->getRawOriginal('name');
Alternative methods for getting value with mutator:
1. $this->attributes['name']
2. $this->getAttributes()['name']`