Handle demo version of the app (#256)

This commit is contained in:
mchev
2025-01-12 13:56:52 +01:00
committed by GitHub
parent f52b73f517
commit 9bed81fe8f
7 changed files with 115 additions and 23 deletions

View File

@@ -60,6 +60,12 @@ class AppServiceProvider extends ServiceProvider
$this->bootAuth();
$this->bootBroadcast();
// In demo mode, prevent all outgoing emails and notifications
if (config('app.env') === 'demo') {
\Illuminate\Support\Facades\Mail::fake();
\Illuminate\Support\Facades\Notification::fake();
}
}
/**