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