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.
|
- <?php
-
- namespace App\Providers;
-
- use Illuminate\Support\ServiceProvider;
- use Laravel\Sanctum\Sanctum;
-
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Register any application services.
- */
- public function register(): void
- {
- // 2019_12_14_000001_create_personal_access_tokens_tableテーブルを作らないようにする
- Sanctum::ignoreMigrations();
- }
-
- /**
- * Bootstrap any application services.
- */
- public function boot(): void
- {
- // コンテキスト設定
- $this->app->singleton(\App\Contexts\Model\Shop::class);
- $this->app->singleton(\App\Contexts\Model\Deposit::class);
-
-
- // セッション情報
- $this->app->singleton(\App\Sessions\SessionUser::class);
- }
- }
|