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