Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

hc config.json file

Mantas edited this page Dec 22, 2017 · 2 revisions

general

packageName - package name HCCore
sequence - order to read config files from packages
namespace - root package namespace

"general": {
        "packageName": "HCCore",
        "sequence": 0,
        "namespace": "InteractiveSolutions\\HoneycombCore"
    },

formData

"formKey": "formNamespace"

 "formData": {
        "user": "InteractiveSolutions\\HoneycombCore\\Forms\\HCUserForm",
        "password-reset": "InteractiveSolutions\\HoneycombCore\\Forms\\HCPasswordResetForm"
        ...
    },

adminMenu

route - route name of meniu element _(admin.user.index) _
parent - parent menu item route name (admin.index)
translation - menu element translation
icon - one of font awesome icons
iconPath - custom icon url (optional) (it will override default icon)
iconParams - optional (you can set custom css style or class to given icon)
aclPermission - registered acl permission
priority - admin menu elements are ordered by priority

       "adminMenu": [
        {
            "route": "admin.user.index",
            "parent": "admin.index",
            "translation": "HCCore::user.page_title",
            "icon": "fa-user",
            "iconParams": {
                   "style": "color:red;",
                   "class": "testine"
             },
            "aclPermission": "interactivesolutions_honeycomb_user_list",
            "priority": 1
        },
        {
            "route": "admin.acl.role.index",
            "parent": "admin.user.index",
            "translation": "HCCore::acl_roles.page_title",
            "icon": "fa-user-md",
            "aclPermission": "interactivesolutions_honeycomb_acl_role_list",
            "priority": 2
        }
    ],    

seeds

must set namespace of package main seeder file

"seeder": "InteractiveSolutions\\HoneycombCore\\Database\\Seeds\\HCCoreSeeder"

routes

register your package route files

"routes": [
    "Routes/routes.form-manager.php",
    "Routes/routes.logs.php",
    "Routes/routes.welcome.php"
]

acl

permissions array contains of controller permissions

name - permission name (unique role name)
controller - controller namsepace
actions - array of given controller available permission actions

"acl": {
        "permissions": [
            {
                "name": "admin.user",
                "controller": "InteractiveSolutions\\HoneycombCore\\Http\\Controllers\\Admin\\HCUserController",
                "actions": [
                    "interactivesolutions_honeycomb_user_list",
                    "interactivesolutions_honeycomb_user_create",
                    "interactivesolutions_honeycomb_user_update",
                    "interactivesolutions_honeycomb_user_delete",
                    "interactivesolutions_honeycomb_user_force_delete"
                ]
            }
        ]
    }

Clone this wiki locally