pelican-panel-mirror/app/Models/WebhookEvent.php
2025-08-21 17:24:22 -04:00

24 lines
491 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
/**
* @property string $name
*/
class WebhookEvent extends Model
{
public $timestamps = false;
protected $fillable = [
'name',
];
public function webhookConfigurationEvent(): BelongsToMany
{
return $this->belongsToMany(WebhookConfiguration::class, 'webhook_configurations_events', 'event_id', 'configuration_id');
}
}