30 lines
522 B
PHP
30 lines
522 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class Firma extends Model
|
|
{
|
|
protected $table = 'firme';
|
|
|
|
protected $fillable = [
|
|
'email_setting_id',
|
|
'nome',
|
|
'contenuto_html',
|
|
'is_default',
|
|
];
|
|
|
|
protected $casts = [
|
|
'is_default' => 'boolean',
|
|
];
|
|
|
|
public function emailSetting(): BelongsTo
|
|
{
|
|
return $this->belongsTo(EmailSetting::class);
|
|
}
|
|
}
|