David Carrdcblog.devยทNov 5, 2022Laravel use multiple boot in traitsLet'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...77 readstraitsAdd a thoughtful commentNo comments yetBe the first to start the conversation.