UiServiceProvider.php 670 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Laravel\Ui;
  3. use Illuminate\Support\Facades\Route;
  4. use Illuminate\Support\ServiceProvider;
  5. class UiServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register the package services.
  9. *
  10. * @return void
  11. */
  12. public function register()
  13. {
  14. if ($this->app->runningInConsole()) {
  15. $this->commands([
  16. AuthCommand::class,
  17. ControllersCommand::class,
  18. UiCommand::class,
  19. ]);
  20. }
  21. }
  22. /**
  23. * Bootstrap any application services.
  24. *
  25. * @return void
  26. */
  27. public function boot()
  28. {
  29. Route::mixin(new AuthRouteMethods);
  30. }
  31. }