source: app/Http/Kernel.php@ 507ade0

develop
Last change on this file since 507ade0 was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

  • Property mode set to 100644
File size: 2.9 KB
Line 
1<?php
2
3namespace App\Http;
4
5use Illuminate\Foundation\Http\Kernel as HttpKernel;
6
7class Kernel extends HttpKernel
8{
9 /**
10 * The application's global HTTP middleware stack.
11 *
12 * These middleware are run during every request to your application.
13 *
14 * @var array
15 */
16 protected $middleware = [
17 // \App\Http\Middleware\TrustHosts::class,
18 \App\Http\Middleware\TrustProxies::class,
19 \Fruitcake\Cors\HandleCors::class,
20 \App\Http\Middleware\PreventRequestsDuringMaintenance::class,
21 \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
22 \App\Http\Middleware\TrimStrings::class,
23 \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
24 \App\Http\Middleware\CheckForMaintenanceMode::class,
25 ];
26
27 /**
28 * The application's route middleware groups.
29 *
30 * @var array
31 */
32 protected $middlewareGroups = [
33 'web' => [
34 \App\Http\Middleware\EncryptCookies::class,
35 \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
36 \Illuminate\Session\Middleware\StartSession::class,
37 // \Illuminate\Session\Middleware\AuthenticateSession::class,
38 \Illuminate\View\Middleware\ShareErrorsFromSession::class,
39 \App\Http\Middleware\VerifyCsrfToken::class,
40 \Illuminate\Routing\Middleware\SubstituteBindings::class,
41 \App\Http\Middleware\LastSeenUserActivity::class,
42 ],
43
44 'api' => [
45 // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
46 'throttle:api',
47 \Illuminate\Routing\Middleware\SubstituteBindings::class,
48 ],
49 ];
50
51 /**
52 * The application's route middleware.
53 *
54 * These middleware may be assigned to groups or used individually.
55 *
56 * @var array
57 */
58 protected $routeMiddleware = [
59 'auth' => \App\Http\Middleware\Authenticate::class,
60 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
61 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
62 'can' => \Illuminate\Auth\Middleware\Authorize::class,
63 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
64 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
65 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
66 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
67 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
68 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
69 'createPassword' => \App\Http\Middleware\CheckCreatePassword::class,
70 'checkVerifyNewEmail' => \App\Http\Middleware\CheckVerifyNewEmail::class,
71 'permission' => \App\Http\Middleware\CheckPermission::class,
72 'checkIsActive' => \App\Http\Middleware\CheckIsActive::class,
73 ];
74}
Note: See TracBrowser for help on using the repository browser.