mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 01:44:45 +02:00

* Add new framework events to listen to * Add simple test for framework events * Update app/Models/WebhookConfiguration.php Co-authored-by: Lance Pioch <git@lance.sh> * Update app/Models/WebhookConfiguration.php Co-authored-by: Lance Pioch <git@lance.sh> * Update app/Models/WebhookConfiguration.php --------- Co-authored-by: Vehikl <go@vehikl.com> Co-authored-by: Lance Pioch <git@lance.sh>
22 lines
676 B
PHP
22 lines
676 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Listeners\DispatchWebhooks;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event to listener mappings for the application.
|
|
*/
|
|
protected $listen = [
|
|
'App\\*' => [DispatchWebhooks::class],
|
|
'eloquent.created*' => [DispatchWebhooks::class],
|
|
'eloquent.deleted*' => [DispatchWebhooks::class],
|
|
'eloquent.updated*' => [DispatchWebhooks::class],
|
|
'Illuminate\\Auth\\Events\\*' => [DispatchWebhooks::class],
|
|
'Illuminate\\Queue\\Events\\*' => [DispatchWebhooks::class],
|
|
];
|
|
}
|