You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
851B

  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. use Laravel\Sanctum\Sanctum;
  5. class AppServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register any application services.
  9. */
  10. public function register(): void
  11. {
  12. // 2019_12_14_000001_create_personal_access_tokens_tableテーブルを作らないようにする
  13. Sanctum::ignoreMigrations();
  14. // DB
  15. $this->app->singleton(\App\Util\DBUtil::class);
  16. // コンテキスト設定
  17. $this->app->singleton(\App\Contexts\Model\Shop::class);
  18. $this->app->singleton(\App\Contexts\Model\Deposit::class);
  19. // セッション情報
  20. $this->app->singleton(\App\Sessions\SessionUser::class);
  21. }
  22. /**
  23. * Bootstrap any application services.
  24. */
  25. public function boot(): void
  26. {
  27. }
  28. }