Skip to content

Instantly share code, notes, and snippets.

@zedix
Created December 2, 2016 19:59
Show Gist options
  • Save zedix/f538f3a7d82e7d7d31c0c5b56d487b4a to your computer and use it in GitHub Desktop.
Save zedix/f538f3a7d82e7d7d31c0c5b56d487b4a to your computer and use it in GitHub Desktop.

Revisions

  1. zedix created this gist Dec 2, 2016.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <?php
    // ...

    class EventServiceProvider extends ServiceProvider
    {
    /**
    * The event handler mappings for the application.
    *
    * @var array
    */
    protected $listen = [
    'App\Events\SomeEvent' => [
    'App\Jobs\SomeJob@handle',
    'App\Jobs\SomeOtherJob@handle',
    'App\Notifications\Mail\XxxNotification@handle',
    'App\Notifications\Slack\XxxNotification@handle',
    ],
    ];
    }