PHP Classes

File: server/app/Http/Kernel.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/app/Http/Kernel.php   Download  
File: server/app/Http/Kernel.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Wallet API and Application
Application to manage a wallet by calling an API
Author: By
Last change:
Date: 2 years ago
Size: 2,728 bytes
 

Contents

Class file image Download
<?php

namespace App\Http;

use
App\Http\Middleware\EncryptCookies;
use
App\Http\Middleware\OnlyAdmin;
use
App\Http\Middleware\VerifyCsrfToken;
use
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use
Illuminate\Foundation\Http\Kernel as HttpKernel;
use
Illuminate\Routing\Middleware\SubstituteBindings;
use
Illuminate\Session\Middleware\StartSession;
use
Illuminate\View\Middleware\ShareErrorsFromSession;

class
Kernel extends HttpKernel
{
   
/**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
   
protected $middleware = [
        \
Fruitcake\Cors\HandleCors::class,
       
// \App\Http\Middleware\TrustHosts::class,
       
\App\Http\Middleware\TrustProxies::class,
        \
App\Http\Middleware\PreventRequestsDuringMaintenance::class,
        \
Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
        \
App\Http\Middleware\TrimStrings::class,
        \
Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
    ];

   
/**
     * The application's route middleware groups.
     *
     * @var array
     */
   
protected $middlewareGroups = [
       
'web' => array(
           
EncryptCookies::class,
           
AddQueuedCookiesToResponse::class,
           
StartSession::class,
           
// \Illuminate\Session\Middleware\AuthenticateSession::class,
           
ShareErrorsFromSession::class,
           
VerifyCsrfToken::class,
           
SubstituteBindings::class,
        ),

       
'api' => [
           
'throttle:api',
           
SubstituteBindings::class,
        ],
    ];

   
/**
     * The application's route middleware.
     *
     * These middleware may be assigned to groups or used individually.
     *
     * @var array
     */
   
protected $routeMiddleware = [
       
'auth' => \App\Http\Middleware\Authenticate::class,
       
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
       
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
       
'can' => \Illuminate\Auth\Middleware\Authorize::class,
       
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
       
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
       
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
       
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
       
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
       
'jwt.auth' => \Tymon\JWTAuth\Http\Middleware\Authenticate::class,
       
'jwt.refresh' => \Tymon\JWTAuth\Http\Middleware\RefreshToken::class,
       
'admin' => OnlyAdmin::class,
    ];
}