VerifyCsrfToken.php 639 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Http\Middleware;
  3. use App\Helpers\ExtensionHelper;
  4. use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
  5. use Illuminate\Contracts\Encryption\Encrypter;
  6. use Illuminate\Contracts\Foundation\Application;
  7. class VerifyCsrfToken extends Middleware
  8. {
  9. /**
  10. * The URIs that should be excluded from CSRF verification.
  11. *
  12. * @var array
  13. */
  14. protected $except = [];
  15. public function __construct(Application $app, Encrypter $encrypter)
  16. {
  17. $this->app = $app;
  18. $this->encrypter = $encrypter;
  19. $this->except = ExtensionHelper::getAllCsrfIgnoredRoutes();
  20. }
  21. }