FEATURE: change directory structure
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: michal
|
||||
* Date: 18.2.16
|
||||
* Time: 15:50
|
||||
*/
|
||||
|
||||
namespace App\CMS\Enumerations;
|
||||
|
||||
use App\Models\Template;
|
||||
|
||||
class Templates extends BaseEnumeration
|
||||
{
|
||||
protected static function init()
|
||||
{
|
||||
$templates = Template::all(['id', 'template_name']);
|
||||
|
||||
foreach ($templates as $template) {
|
||||
self::push($template->id, $template->template_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user