Laravel use multiple boot in traits
Let's say you want to use multiple traits in your models to reuse common code such as applying UUIDs and settings global query scopes like this:
use HasUuid;
use HasTenant;
Each of these traits has a boot method:
HasUuid:
trait HasUuid
{
public f...
dcblog.dev2 min read