ldc-crm/app/Models/ClaimMailTemplate.php
2025-07-28 09:07:54 +02:00

42 lines
1.1 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id Mail template id.
* @property string $label Mail template label.
* @property string $content Mail template content.
* @property \App\Models\Brand $brand_id Mail template associated Brand.
* @property-read \Illuminate\Support\Carbon $created_at Mail template created date.
* @property-read \Illuminate\Support\Carbon $updated_at Mail template updated date.
*/
class ClaimMailTemplate extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'label',
'content',
'brand_id',
];
// * RELATIONS
/**
* Brand belongs to relation.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function brand(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Brand::class);
}
}