ultimatepos/Modules/IntegrationHub/Models/IhWebhookDelivery.php

24 lines
498 B
PHP

<?php
namespace Modules\IntegrationHub\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class IhWebhookDelivery extends Model
{
protected $table = 'ih_webhook_deliveries';
protected $guarded = ['id'];
protected $casts = [
'payload' => 'array',
'delivered_at' => 'datetime',
];
public function endpoint(): BelongsTo
{
return $this->belongsTo(IhWebhookEndpoint::class, 'endpoint_id');
}
}