12345678910111213141516171819202122232425 |
- <?php
- namespace App\Http\Middleware;
- use App\Helpers\ExtensionHelper;
- use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
- use Illuminate\Contracts\Encryption\Encrypter;
- use Illuminate\Contracts\Foundation\Application;
- class VerifyCsrfToken extends Middleware
- {
- /**
- * The URIs that should be excluded from CSRF verification.
- *
- * @var array
- */
- protected $except = [];
- public function __construct(Application $app, Encrypter $encrypter)
- {
- $this->app = $app;
- $this->encrypter = $encrypter;
- $this->except = ExtensionHelper::getAllCsrfIgnoredRoutes();
- }
- }
|