$payload * @property \Illuminate\Support\Carbon|null $received_at * @property \Illuminate\Support\Carbon|null $processed_at * @property string|null $error_message * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\Payment|null $payment * @method static \Illuminate\Database\Eloquent\Builder|Webhook newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Webhook newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Webhook query() * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereAccountId($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereAttemptsCount($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereChargeId($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereErrorMessage($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereEvent($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereHookId($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereOrderId($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook wherePayload($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook wherePaymentId($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereProcessedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereProvider($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereReceivedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereTransactionId($value) * @method static \Illuminate\Database\Eloquent\Builder|Webhook whereUpdatedAt($value) * @mixin \Eloquent */ class Webhook extends Model { use HasFactory; protected $table = 'webhooks'; protected $fillable = [ 'payment_id', 'provider', 'hook_id', 'event', 'account_id', 'order_id', 'charge_id', 'transaction_id', 'status', 'attempts_count', 'payload', 'received_at', 'processed_at', 'error_message', ]; protected $casts = [ 'attempts_count' => 'integer', 'payload' => 'array', 'received_at' => 'datetime', 'processed_at' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; public function payment() { return $this->belongsTo(Payment::class); } }