config = $config; } public function bootstrap(TenantManager $tenantManager): void { $tenantManager->hook('tenant.creating', function ($tm, Tenant $tenant) { $tenant->with('created_at', $this->now()); $tenant->with('updated_at', $this->now()); }); $tenantManager->hook('tenant.updating', function ($tm, Tenant $tenant) { $tenant->with('updated_at', $this->now()); }); $tenantManager->hook('tenant.softDeleting', function ($tm, Tenant $tenant) { $tenant->with('deleted_at', $this->now()); }); } public function now(): string { return Date::now()->format(static::$format); } }