|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
use App\Http\Middleware\CatchTokenFcmMiddleware;
|
|
use App\Http\Middleware\CatchTokenFcmMiddleware;
|
|
|
use App\Http\Middleware\EnsureUserHasRole;
|
|
use App\Http\Middleware\EnsureUserHasRole;
|
|
|
|
|
+use App\Http\Middleware\TrackLastWebPageMiddleware;
|
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Foundation\Application;
|
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
|
use Illuminate\Foundation\Configuration\Middleware;
|
|
use Illuminate\Foundation\Configuration\Middleware;
|
|
@@ -17,6 +18,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
|
|
$middleware->alias([
|
|
$middleware->alias([
|
|
|
'role' => EnsureUserHasRole::class,
|
|
'role' => EnsureUserHasRole::class,
|
|
|
]);
|
|
]);
|
|
|
|
|
+ $middleware->append(TrackLastWebPageMiddleware::class);
|
|
|
$middleware->append(CatchTokenFcmMiddleware::class);
|
|
$middleware->append(CatchTokenFcmMiddleware::class);
|
|
|
})
|
|
})
|
|
|
->withExceptions(function (Exceptions $exceptions) {
|
|
->withExceptions(function (Exceptions $exceptions) {
|