How/When to Use Traits in Laravel: My Opinion

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: - - - - - Support the channel by checking out our products: - Enroll in my Laravel courses: - Try our Laravel QuickAdminPanel: - Buy my ready-made Laravel scripts: - Purchase my Livewire Kit: - Subscribe to my weekly newsletter:
Back to Top