Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 4, 2022 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2cd968121fb0fc195574caa67022121e to your computer and use it in GitHub Desktop.
Save parzibyte/2cd968121fb0fc195574caa67022121e to your computer and use it in GitHub Desktop.
<?php
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
RevisarSiMentorHizoRegistroSecundario::class, # Debe ir antes de SubstituteBindings y después de StartSession
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
'api' => [
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
'throttle:api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment