*/ use HasFactory, SoftDeletes; protected $guarded = ['id']; protected $casts = [ 'events' => 'array', 'is_active' => 'boolean', ]; protected static function newFactory(): WebhookFactory { return WebhookFactory::new(); } /** @return HasMany */ public function deliveries(): HasMany { return $this->hasMany(WebhookDelivery::class); } /** @return BelongsTo */ public function workspace(): BelongsTo { return $this->belongsTo(Workspace::class); } }