|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Providers; |
|
4
|
|
|
|
|
5
|
|
|
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; |
|
6
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
|
7
|
|
|
|
|
8
|
|
|
class EventServiceProvider extends ServiceProvider |
|
9
|
|
|
{ |
|
10
|
|
|
/** |
|
11
|
|
|
* The event listener mappings for the application. |
|
12
|
|
|
* |
|
13
|
|
|
* @var array |
|
14
|
|
|
*/ |
|
15
|
|
|
protected $listen = [ |
|
16
|
|
|
'App\Events\MakeWasCreated' => [], |
|
17
|
|
|
'App\Events\MakeWasDeleted' => [], |
|
18
|
|
|
|
|
19
|
|
|
'App\Events\ModelWasCreated' => [], |
|
20
|
|
|
'App\Events\ModelWasDeleted' => [], |
|
21
|
|
|
|
|
22
|
|
|
'App\Events\WarehouseWasCreated' => [], |
|
23
|
|
|
'App\Events\WarehouseWasUpdated' => [], |
|
24
|
|
|
'App\Events\WarehouseWasDeleted' => [], |
|
25
|
|
|
|
|
26
|
|
|
'App\Events\SupplierWasCreated' => [], |
|
27
|
|
|
'App\Events\SupplierWasDeleted' => [], |
|
28
|
|
|
|
|
29
|
|
|
'App\Events\PurchaseWasCreated' => [ |
|
30
|
|
|
'App\Listeners\GeneratePurchaseNotification', |
|
31
|
|
|
], |
|
32
|
|
|
'App\Events\PurchaseWasDeleted' => [], |
|
33
|
|
|
|
|
34
|
|
|
'App\Events\GuitarWasCreated' => [], |
|
35
|
|
|
'App\Events\GuitarWasUpdated' => [], |
|
36
|
|
|
'App\Events\GuitarWasDeleted' => [], |
|
37
|
|
|
|
|
38
|
|
|
'App\Events\SaleWasCreated' => [], |
|
39
|
|
|
'App\Events\SaleWasDeleted' => [], |
|
40
|
|
|
|
|
41
|
|
|
'App\Events\NotificationWasCreated' => [], |
|
42
|
|
|
'App\Events\NotificationWasDismissed' => [], |
|
43
|
|
|
]; |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* Register any other events for your application. |
|
47
|
|
|
* |
|
48
|
|
|
* @param \Illuminate\Contracts\Events\Dispatcher $events |
|
49
|
|
|
* |
|
50
|
|
|
* @return void |
|
51
|
|
|
*/ |
|
52
|
90 |
|
public function boot(DispatcherContract $events) |
|
53
|
|
|
{ |
|
54
|
90 |
|
parent::boot($events); |
|
55
|
90 |
|
} |
|
56
|
|
|
} |
|
57
|
|
|
|