AppServiceProvider.php 640 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. use Illuminate\Validation\Validator;
  5. class AppServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register any application services.
  9. *
  10. * @return void
  11. */
  12. public function register()
  13. {
  14. if ($this->app->environment('local')) {
  15. $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
  16. $this->app->register(TelescopeServiceProvider::class);
  17. }
  18. }
  19. /**
  20. * Bootstrap any application services.
  21. *
  22. * @return void
  23. */
  24. public function boot()
  25. {
  26. //
  27. }
  28. }