選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

EventServiceProvider.php 626B

1234567891011121314151617181920212223242526272829303132
  1. <?php namespace App\Providers;
  2. use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
  3. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  4. class EventServiceProvider extends ServiceProvider {
  5. /**
  6. * The event handler mappings for the application.
  7. *
  8. * @var array
  9. */
  10. protected $listen = [
  11. 'event.name' => [
  12. 'EventListener',
  13. ],
  14. ];
  15. /**
  16. * Register any other events for your application.
  17. *
  18. * @param \Illuminate\Contracts\Events\Dispatcher $events
  19. * @return void
  20. */
  21. public function boot(DispatcherContract $events)
  22. {
  23. parent::boot($events);
  24. //
  25. }
  26. }