Override core model not in effect
trane294 last edited by
I did everything following tutorial but it seems not to work
rahul last edited by
Your whole code is correct instead of dumping whole customer, try to dd($customer->name), because you have created Accessor for name.
For more detail, please go through with this article - https://laravel.com/docs/5.8/eloquent-mutators#defining-an-accessor