Answers for "get original name without mutant model laravel"

PHP
1

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']`
Posted by: Guest on December-08-2020

Code answers related to "get original name without mutant model laravel"

Browse Popular Code Answers by Language