'object', 'updated_at' => 'timestamp', 'created_at' => 'timestamp', 'deleted_at' => 'timestamp', ]; protected $appends = [ 'hashed_id', ]; protected $fillable = [ 'token', 'routing_number', 'gateway_customer_reference', 'gateway_type_id', 'meta', 'client_id', ]; public function getEntityType() { return self::class; } public function client(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Client::class)->withTrashed(); } public function gateway(): \Illuminate\Database\Eloquent\Relations\HasOne { return $this->hasOne(CompanyGateway::class, 'id', 'company_gateway_id'); } public function gateway_type(): \Illuminate\Database\Eloquent\Relations\HasOne { return $this->hasOne(GatewayType::class, 'id', 'gateway_type_id'); } /** * Company * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function company() { return $this->belongsTo(Company::class); } public function user(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(User::class)->withTrashed(); } }