Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PHP Tips
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel {
* The application's global HTTP middleware stack.
* @var array
protected $middleware = [
* The application's route middleware.
* @var array
protected $routeMiddleware = [
'auth' => 'App\Http\Middleware\Authenticate',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
'csrf' => 'App\Http\Middleware\VerifyCsrfToken',

This comment has been minimized.

Copy link

commented Sep 19, 2015

5.1以后可以直接在VerifyCsrfToken中添加except route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.