領収証発行サービス
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.

38 lines
824B

  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Queue\Events\JobProcessing;
  4. use Illuminate\Support\Facades\Log;
  5. use Illuminate\Support\Facades\Queue;
  6. use Illuminate\Support\ServiceProvider;
  7. class AppServiceProvider extends ServiceProvider
  8. {
  9. /**
  10. * Register any application services.
  11. */
  12. public function register(): void
  13. {
  14. //
  15. }
  16. /**
  17. * Bootstrap any application services.
  18. */
  19. public function boot(): void
  20. {
  21. if ($this->app->isLocal()) {
  22. // IDEヘルパー登録
  23. $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
  24. }
  25. //Queue関連
  26. Queue::before(function (JobProcessing $event) {
  27. // Logのドライバー設定
  28. Log::setDefaultDriver('queue');
  29. });
  30. }
  31. }