<?php
namespace App\Models;
use App\Models\Concerns\BelongsToMerchant;
use Illuminate\Database\Eloquent\Model;
class WebhookEndpoint extends Model {
 use BelongsToMerchant; protected $fillable=['merchant_id','url','secret_ciphertext','events','status','environment']; protected $hidden=['secret_ciphertext']; protected function casts():array{return ['secret_ciphertext'=>\App\Casts\EncryptedEnvelope::class,'events'=>'array'];} }
