| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace Laravel\Ui;
- use Illuminate\Support\Facades\Route;
- use Illuminate\Support\ServiceProvider;
- class UiServiceProvider extends ServiceProvider
- {
- /**
- * Register the package services.
- *
- * @return void
- */
- public function register()
- {
- if ($this->app->runningInConsole()) {
- $this->commands([
- AuthCommand::class,
- ControllersCommand::class,
- UiCommand::class,
- ]);
- }
- }
- /**
- * Bootstrap any application services.
- *
- * @return void
- */
- public function boot()
- {
- Route::mixin(new AuthRouteMethods);
- }
- }
|