27 lines
536 B
PHP
27 lines
536 B
PHP
<?php
|
|
|
|
namespace App\Models\Templates;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Template extends Model
|
|
{
|
|
public $timestamps = true;
|
|
protected $fillable = [
|
|
'template_name',
|
|
'module_id',
|
|
'name',
|
|
'path',
|
|
'description',
|
|
'editable'
|
|
];
|
|
|
|
/**
|
|
* Template path where this template is stored
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function path() {
|
|
return $this->belongsTo(TemplatePath::class, 'path');
|
|
}
|
|
} |