<?php
namespace Lycoreco\Apps\Admin\Controllers;

use Lycoreco\Includes\Model\ValidationError;
use Lycoreco\Apps\Recipes\Models\CategoryModel;

class AdminCategoryController extends Abstract\AdminSingleController
{
    protected $model_сlass_name = "Lycoreco\Apps\Recipes\Models\CategoryModel";
    protected $field_title = 'field_name';
    protected $verbose_name = 'category';
    protected $object_router_name = 'admin:category';

    protected $fields = array(
        [
            'model_field' => 'name',
            'input_type' => 'text',
            'input_attrs' => ['required']
        ]
    );
}