FormSchema::class, 'fk' => 'form_schema_id']; } protected $fillable = [ 'form_schema_id', 'name', 'trigger_event', 'url', 'secret', 'is_active', ]; /** @var array */ protected $casts = [ 'url' => 'encrypted', 'secret' => 'encrypted', 'is_active' => 'bool', ]; public function schema(): BelongsTo { return $this->belongsTo(FormSchema::class, 'form_schema_id'); } public function deliveries(): HasMany { return $this->hasMany(FormWebhookDelivery::class); } }