hasMany(BasketsContent::class); } /** * The "booted" method of the model. * * @return void */ protected static function booted(): void { static::creating(function (Basket $basket) { $basket->reference = Str::ulid(); }); } }