AppServiceProvider.php 705 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. use stdClass;
  5. class AppServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Bootstrap any application services.
  9. *
  10. * @return void
  11. */
  12. public function boot()
  13. {
  14. $this->app->instance('user', new stdClass);
  15. }
  16. /**
  17. * Register any application services.
  18. *
  19. * @return void
  20. */
  21. public function register()
  22. {
  23. /*if ($this->app->environment() !== 'production') {
  24. $this->app->register(\Way\Generators\GeneratorsServiceProvider::class);
  25. $this->app->register(\Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class);
  26. }*/ }
  27. }