Get real, active and permanent YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

How/When to Use Traits in Laravel: My Opinion

Follow
Laravel Daily

In a recent video, I've transformed Controller code into a Service class, and some people in the comments argued about using Traits instead. Let me comment on that example, adding a few more examples of Traits in other projects.

Previous video:    • Laravel Controller Code: Move to Mode...  


Support the channel by checking out our products:
Enroll in my Laravel courses: https://laraveldaily.teachable.com
Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
Buy my readymade Laravel scripts: https://laraveldaily.gumroad.com
Purchase my Livewire Kit: https://livewirekit.com
Subscribe to my weekly newsletter: http://bit.ly/laravelnewsletter

posted by Kleosincd