REFACTORING #1880 @15m: remove custom fields

This commit is contained in:
Michal Kváček
2016-11-23 03:21:23 +01:00
parent 675aec669b
commit d0fbce13fb
28 changed files with 1 additions and 727 deletions
@@ -1,20 +0,0 @@
<?php
namespace App\CMS\Enumerations;
use App\Models\CustomFieldResource;
class CustomFieldResources extends BaseEnumeration
{
public static $items = [];
public static function init()
{
// load items from database
$types = CustomFieldResource::all(['id', 'name']);
// push items into collection
foreach ($types as $type) {
self::push($type->id, $type->name);
}
}
}
-21
View File
@@ -1,21 +0,0 @@
<?php
namespace App\CMS\Enumerations;
use App\Models\CustomFieldType;
class CustomFieldTypes extends BaseEnumeration
{
public static $items = [];
public static function init()
{
// load items from database
$types = CustomFieldType::all(['id', 'name']);
// push items into collection
foreach ($types as $type) {
self::push($type->id, $type->name);
}
}
}