get original name without mutant model laravel example code

get original name without mutant model laravel example code

get original name without mutant model laravel example

get original name without mutant model laravel example in php

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']`
By Manish Salunke In php -

Tags:

php

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99