Error correction and preparation of the project for initial deployment

This commit is contained in:
F4ilji
2025-08-11 16:12:10 +05:00
parent 8b2f9e99f0
commit e62b442991
9 changed files with 109 additions and 30 deletions
+4 -1
View File
@@ -20,6 +20,9 @@ class UserObserver
public function created(User $user): void
{
$this->userCacheService->clearAllCacheByModel();
if (\Illuminate\Support\Facades\Schema::hasTable('roles')) {
$user->assignRole(config('filament-shield.dashboard_user.name', 'dashboard_user'));
}
}
/**
@@ -56,4 +59,4 @@ class UserObserver
$this->userCacheService->clearCache($user);
$this->userCacheService->clearAllCacheByModel();
}
}
}