1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Providers;
- use Illuminate\Support\Facades\DB;
- use Illuminate\Support\Facades\Log;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Register any application services.
- */
- public function register(): void
- {
- //
- }
- /**
- * Bootstrap any application services.
- */
- public function boot(): void
- {
- \Illuminate\Support\Facades\Schema::defaultStringLength(191);
- // 禁用 CSRF 验证
- // \Illuminate\Support\Facades\Route::matched(function () {
- // app()->bind('middleware.disable', function () {
- // return true;
- // });
- // });
- }
- }
|