ctrlpanel/app/Http/Middleware/VerifyCsrfToken.php

26 lines
639 B
PHP
Raw Permalink Normal View History

2021-06-05 09:26:32 +00:00
<?php
namespace App\Http\Middleware;
use App\Helpers\ExtensionHelper;
2021-06-05 09:26:32 +00:00
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Contracts\Foundation\Application;
2021-06-05 09:26:32 +00:00
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();
}
2021-06-05 09:26:32 +00:00
}