BalanceServiceProvider.php 850 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of ibrand/balace.
  4. *
  5. * (c) GuoJiangClub <https://www.ibrand.cc>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace GuoJiangClub\Component\Balance\Test;
  11. use Illuminate\Support\ServiceProvider;
  12. class BalanceServiceProvider extends ServiceProvider
  13. {
  14. /**
  15. * Bootstrap the application services.
  16. */
  17. public function boot()
  18. {
  19. if ($this->app->runningInConsole()) {
  20. $this->registerMigrations();
  21. }
  22. }
  23. /**
  24. * Register Passport's migration files.
  25. */
  26. protected function registerMigrations()
  27. {
  28. return $this->loadMigrationsFrom(__DIR__.'/database');
  29. }
  30. /**
  31. * Register the service provider.
  32. */
  33. public function register()
  34. {
  35. }
  36. }