You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel 9 introduced new attribute accessor and mutator methods . The two big advantages are the accessor values are cached, and a single method is only required to define both an accessor and/or mutator.
While there are no plans by the Laravel authors to deprecate the older setNameAttribute() / getNameAttribute() methods anytime soon, the older method is no longer recommended for newer code.
The work invoked is to go through all the files in app/Models folder and convert the models to use the newer methods. The major of the {get,set}NameAttribute functions are fairly simple and consist of a single line.
The text was updated successfully, but these errors were encountered:
Laravel 9 introduced new attribute accessor and mutator methods . The two big advantages are the accessor values are cached, and a single method is only required to define both an accessor and/or mutator.
https://laravel.com/docs/9.x/eloquent-mutators#accessors-and-mutators
While there are no plans by the Laravel authors to deprecate the older setNameAttribute() / getNameAttribute() methods anytime soon, the older method is no longer recommended for newer code.
The work invoked is to go through all the files in app/Models folder and convert the models to use the newer methods. The major of the {get,set}NameAttribute functions are fairly simple and consist of a single line.
The text was updated successfully, but these errors were encountered: