FEATURE: add another repositories
This commit is contained in:
@@ -6,7 +6,6 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Template extends Model
|
||||
{
|
||||
use ModelTraits\Template;
|
||||
public $timestamps = true;
|
||||
protected $fillable = [
|
||||
'template_name',
|
||||
@@ -16,10 +15,13 @@ class Template extends Model
|
||||
'description',
|
||||
'editable'
|
||||
];
|
||||
const EDITED_TEMPLATES_DIRECTORY = 'custom';
|
||||
const ASSETS_DIRECTORY = 'assets';
|
||||
const MODULES_DIRECTORY = 'modules';
|
||||
const TEMPLATE_SUFFIX = '.blade.php';
|
||||
const CUSTOM_EDIT_DIRECTORY = 1;
|
||||
const ORIGINAL_DIRECTORY = 2;
|
||||
|
||||
/**
|
||||
* Template path where this template is stored
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function path() {
|
||||
return $this->belongsTo(TemplatePath::class, 'path');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user