Next up in the series on useful Laravel model traits is the `UserTimezoneAware` Trait. This trait is useful when you have dates on models that you need to display in the user's timezone. ```php // … [Read more...]
Useful Laravel Model Traits: Gravatar
Starting a little series here on useful Laravel model traits. This first one I use quite often. // app\Traits\HasGravatar.php namespace App\Traits; trait HasGravatar { /** * The … [Read more...]
Laravel Transformable – An Eloquent Model Trait for Consumable Models
In working on a new Laravel-based REST API over an existing database, I quickly realized the need to shield API consumers from my underlying database structure, especially since I knew the structure … [Read more...]