mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-14 12:06:46 +00:00
🛠️ Integrate Laravel Nightwatch and enhance middleware handling
- Added Laravel Nightwatch for advanced monitoring and user sampling. - Customized Livewire update route with rate-limiting middleware. - Introduced a global fallback route with 404 response and sampling middleware. - Enabled event listening for health diagnosis with Nightwatch sampling adjustments. - Refined lazy loading prevention in local environments.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Laravel\Nightwatch\Http\Middleware\Sample;
|
||||
use Livewire\Volt\Volt;
|
||||
|
||||
Route::redirect('/', 'welcome');
|
||||
@@ -118,4 +119,7 @@ Route::middleware(['auth'])
|
||||
|
||||
//Route::feeds();
|
||||
|
||||
Route::fallback(fn () => abort(404))
|
||||
->middleware(Sample::rate(0.5));
|
||||
|
||||
require __DIR__.'/auth.php';
|
||||
|
||||
Reference in New Issue
Block a user