VerifyCsrfToken.php 789 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Http\Middleware;
  3. use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
  4. class VerifyCsrfToken extends Middleware
  5. {
  6. /**
  7. * Indicates whether the XSRF-TOKEN cookie should be set on the response.
  8. *
  9. * @var bool
  10. */
  11. protected $addHttpCookie = true;
  12. /**
  13. * The URIs that should be excluded from CSRF verification.
  14. *
  15. * @var array
  16. */
  17. protected $except = [
  18. '/tbot/869244226:AAG1K-ku_c7q-8TgaaEKR9k14kEWZ7AqfCs'
  19. ];
  20. // public function __construct(\Illuminate\Foundation\Application $app, \Illuminate\Contracts\Encryption\Encrypter $encrypter)
  21. // {
  22. // $this->app = $app;
  23. // $this->encrypter = $encrypter;
  24. // $this->except[] = \Telegram::getAccessToken();
  25. // }
  26. }