mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 05:50:55 +08:00
improve admin user profile + image hosting
This commit is contained in:
@@ -1337,3 +1337,11 @@ function get_user_locale(int $uid): string
|
||||
}
|
||||
return \App\Http\Middleware\Locale::$languageMaps[$result[0]['site_lang_folder']] ?? 'en';
|
||||
}
|
||||
|
||||
function send_admin_success_notification(string $msg = ""): void {
|
||||
\Filament\Notifications\Notification::make()->success()->title($msg ?: "Success!")->send();
|
||||
}
|
||||
|
||||
function send_admin_fail_notification(string $msg = ""): void {
|
||||
\Filament\Notifications\Notification::make()->danger()->title($msg ?: "Fail!")->send();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user