AppServiceProvider.php 718 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\Facades\DB;
  4. use Illuminate\Support\Facades\Log;
  5. use Illuminate\Support\ServiceProvider;
  6. class AppServiceProvider extends ServiceProvider
  7. {
  8. /**
  9. * Register any application services.
  10. */
  11. public function register(): void
  12. {
  13. //
  14. }
  15. /**
  16. * Bootstrap any application services.
  17. */
  18. public function boot(): void
  19. {
  20. \Illuminate\Support\Facades\Schema::defaultStringLength(191);
  21. // 禁用 CSRF 验证
  22. // \Illuminate\Support\Facades\Route::matched(function () {
  23. // app()->bind('middleware.disable', function () {
  24. // return true;
  25. // });
  26. // });
  27. }
  28. }