Extend Eloquent Model: BaseModel or Trait?

If you have some repeating functionality that you want to reuse in multiple Eloquent models, there are at least two places where to put it. - - - - - Support the channel by checking out our products: - Enroll in my Laravel courses: - Try our Laravel QuickAdminPanel: - Purchase my Livewire Kit: - View Laravel Code Examples: - Subscribe to my weekly newsletter:
Back to Top