Error correction and preparation of the project for initial deployment
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user