<?php  namespace App\Traits;  use App\Models\Webhook; use App\Services\WebhookSchedulerHandler; use Illuminate\Database\Eloquent\Relations\MorphMany;  trait HasWebhooks { 	public function webhooks(): MorphMany{}  	public function createWebhook(array $data): ?Webhook{}  	public function updateWebhook(string $id, array $data): ?array{}  	protected static function bootHasWebhooks(): void 	{ 		static::deleting(function (object $model): void { 			$model->webhooks->each(function (Webhook $item): void { 				$item->delete(); 			}); 		}); 	} }