New in Laravel : One Method for Accessors and Mutators in Eloquent

Presenting to you a new Laravel framework feature, released this week by Taylor Otwell himself. You won’t need to define getFooAttribute() and setFooAttribute(), instead you define just one foo(). How does it work? Original PR: - - - - - 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