'adrema', 'description' => 'No description provided yet...', 'author' => 'silva', 'icon' => 'icon-leaf' ]; } /** * register method, called when the plugin is first registered. */ public function register() { // } /** * boot method, called right before the request route. */ public function boot() { // } /** * registerComponents used by the frontend. */ public function registerComponents() { return [ EventIndex::class => 'adrema_event_index', EventRegister::class => 'adrema_event_register', EventDescription::class => 'adrema_event_description', ]; } /** * registerPermissions used by the backend. */ public function registerPermissions() { return []; // Remove this line to activate return [ 'silva.adrema.some_permission' => [ 'tab' => 'adrema', 'label' => 'Some permission' ], ]; } /** * registerPermissions used by the backend. */ public function registerSettings() { return [ 'settings' => [ 'label' => 'Adrema', 'description' => 'setting_description', 'category' => 'CATEGORY_CMS', 'icon' => 'icon-cog', 'class' => Settings::class, ] ]; } /** * registerNavigation used by the backend. */ public function registerNavigation() { return []; // Remove this line to activate return [ 'adrema' => [ 'label' => 'adrema', 'url' => Backend::url('silva/adrema/mycontroller'), 'icon' => 'icon-leaf', 'permissions' => ['silva.adrema.*'], 'order' => 500, ], ]; } }