Laravel 11 moves the Model Casts from a property to a method

Опубликовано: 04 Ноябрь 2024
на канале: Laravel News
5,605
59

In Laravel 11, model casts are now defined as a method instead of a property. When defined as a method, we can do other things, like call other methods directly from the casts.

Video Links:

➡️ Laravel 11 - https://laravel-news.com/laravel-11
➡️ Laravel 11 Playlist    • Laravel 11  
➡️ Laravel 11 Model Casts https://laravel-news.com/model-casts


➫ Business Inquires: [email protected]

----------------------------------------------------------------------
JOIN OUR WEEKLY LARAVEL NEWSLETTER
👉 https://laravel-news.com/newsletter
----------------------------------------------------------------------


#laravel #phpdeveloper #laravel11