1 | <?php |
||
6 | class EventCleanCacheRepository extends ServiceProvider |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * The event handler mappings for the application. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $listen = [ |
||
15 | 'Prettus\Repository\Events\RepositoryEntityCreated' => [ |
||
16 | 'NwLaravel\Repositories\Listeners\CleanCacheRepository' |
||
17 | ], |
||
18 | 'Prettus\Repository\Events\RepositoryEntityUpdated' => [ |
||
19 | 'NwLaravel\Repositories\Listeners\CleanCacheRepository' |
||
20 | ], |
||
21 | 'Prettus\Repository\Events\RepositoryEntityDeleted' => [ |
||
22 | 'NwLaravel\Repositories\Listeners\CleanCacheRepository' |
||
23 | ] |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * Register the application's event listeners. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | 1 | public function boot() |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 1 | public function register() |
|
49 | } |
||
50 |