23 lines
393 B
PHP
23 lines
393 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: michal
|
|
* Date: 18.2.16
|
|
* Time: 10:33
|
|
*/
|
|
|
|
namespace App\CMS\Enumerations;
|
|
|
|
use App\Models\TemplatePath;
|
|
|
|
class TemplatePaths extends BaseEnumeration
|
|
{
|
|
protected static function init()
|
|
{
|
|
$paths = TemplatePath::all(['id', 'path']);
|
|
|
|
foreach ($paths as $path) {
|
|
self::push($path->id, $path->path);
|
|
}
|
|
}
|
|
} |