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.

33 line
779B

  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. }
  15. /**
  16. * Bootstrap any application services.
  17. */
  18. public function boot(): void
  19. {
  20. // コンテキスト設定
  21. $this->app->singleton(\App\Contexts\Model\Shop::class);
  22. $this->app->singleton(\App\Contexts\Model\Deposit::class);
  23. // セッション情報
  24. $this->app->singleton(\App\Sessions\SessionUser::class);
  25. }
  26. }