链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
744 B

5 years ago
5 years ago
5 years ago
5 years ago
  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. * @return void
  12. */
  13. public function register()
  14. {
  15. //
  16. }
  17. /**
  18. * Bootstrap any application services.
  19. *
  20. * @return void
  21. */
  22. public function boot()
  23. {
  24. //
  25. \Schema::defaultStringLength(191);
  26. // DB::listen(function($query){
  27. // $sql = $query->sql;
  28. // $bingings = $query->bindings;
  29. // $time = $query->time;
  30. // Log::debug(compact('sql','bingings','time'));
  31. // });
  32. }
  33. }