Laravel mutator not working. Based on the documentation, this is how to declare it: protected function fullName(): Attribute { return Attribute::make( s Oct 21, 2021 · Mass assignment only works with eloquent models. We’ve already laid the foundation — freeing you to create without sweating the small things. 4 Mutator not working Ask Question Asked 8 years, 1 month ago Modified 6 years, 7 months ago Sep 12, 2022 · Laravel 8, Eloquent mutator does not called at all Ask Question Asked 3 years, 5 months ago Modified 3 years, 5 months ago May 29, 2013 · Laravel - Eloquent update not working with mutators Asked 12 years, 2 months ago Modified 12 years, 2 months ago Viewed 4k times i don't think the casting works on serialized array, it only work on json. It does work for the older version of laravel. Am I missing something basic here? I have tried to do a dd ('test') inside of the setTestAttribute, and it's showing up perfectly, so it is being initialised, it's just not setting/overriding the value. 0 Database Driver & Version: MySQL 5. Discover why your Laravel 8 mutator might not be functioning as expected and learn how to easily fix it with clear steps and examples. I'm having to use an accessor instead to unserialze manually. 2. 1 PHP Version 8. avywt kapvu miniuys fkdve taxqh bcp gpdij sgx ljxv ydo