adrema/app/Maildispatcher/Models/Maildispatcher.php

33 lines
766 B
PHP
Raw Permalink Normal View History

2023-06-12 13:12:46 +02:00
<?php
namespace App\Maildispatcher\Models;
use App\Mailgateway\Models\Mailgateway;
2024-09-22 17:32:29 +02:00
use Database\Factories\Maildispatcher\Models\MaildispatcherFactory;
2023-06-12 13:12:46 +02:00
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
{
2024-09-22 17:32:29 +02:00
/** @use HasFactory<MaildispatcherFactory> */
2023-06-12 13:12:46 +02:00
use HasFactory;
use HasUuids;
public $guarded = [];
public $timestamps = false;
public $casts = [
'filter' => 'json',
];
2023-06-15 00:33:13 +02:00
/**
* @return BelongsTo<Mailgateway, self>
*/
2023-06-12 13:12:46 +02:00
public function gateway(): BelongsTo
{
return $this->belongsTo(Mailgateway::class);
}
}