39 lines
591 B
PHP
39 lines
591 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class EmailTemplate
|
|
*
|
|
* @property int $id
|
|
* @property string $subject
|
|
* @property string $message
|
|
* @property bool $active
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class EmailTemplate extends Model
|
|
{
|
|
protected $connection = 'mysql';
|
|
|
|
protected $table = 'email_templates';
|
|
|
|
protected $casts = [
|
|
'active' => 'bool'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'subject',
|
|
'message',
|
|
'active'
|
|
];
|
|
}
|