59 lines
1.9 KiB
PHP
59 lines
1.9 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class EmailTemplate
|
|
*
|
|
* @property int $id
|
|
* @property int $email_template_dir_id
|
|
* @property string $subject
|
|
* @property string $message
|
|
* @property bool $active
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
* @property EmailTemplateDir $email_template_dir
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereActive($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereEmailTemplateDirId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereMessage($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereSubject($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereUpdatedAt($value)
|
|
* @property string $name
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\EmailTemplate whereName($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class EmailTemplate extends Model
|
|
{
|
|
protected $table = 'email_templates';
|
|
|
|
protected $casts = [
|
|
'email_template_dir_id' => 'int',
|
|
'active' => 'bool'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'email_template_dir_id',
|
|
'name',
|
|
'subject',
|
|
'message',
|
|
'active'
|
|
];
|
|
|
|
public function email_template_dir()
|
|
{
|
|
return $this->belongsTo(EmailTemplateDir::class);
|
|
}
|
|
}
|