adrema/app/Maildispatcher/Models/Maildispatcher.php

28 lines
588 B
PHP
Raw Normal View History

2023-06-12 13:12:46 +02:00
<?php
namespace App\Maildispatcher\Models;
use App\Mailgateway\Models\Mailgateway;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Maildispatcher extends Model
{
use HasFactory;
use HasUuids;
public $guarded = [];
public $timestamps = false;
public $casts = [
'filter' => 'json',
];
public function gateway(): BelongsTo
{
return $this->belongsTo(Mailgateway::class);
}
}