Download the PHP package bkstar123/bkscms-utilities without Composer
On this page you can find all versions of the php package bkstar123/bkscms-utilities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bkstar123/bkscms-utilities
More information about bkstar123/bkscms-utilities
Files in bkstar123/bkscms-utilities
Package bkscms-utilities
Short Description Provides neccessary utilities for the bkscms project
License MIT
Informations about the package bkscms-utilities
bkscms-utilities
Provides neccessary utilities for a BKSCMS project
For creating a BKSCMS project, run the following command:
1. Requirement
It is recommended to install this package with PHP version 7.1.3+ and Laravel Framework version 5.6+
2. Installation
composer require bkstar123/bkscms-utilities
Then, publish the package's configuration file:
3. Usage
Currently, this package provides two helpers which can be used in a BKSCMS project:
- MenuHelper
- CrudViewHelper
3.1 MenuHelper
After publishing the package's configuration file, you will get config/bkstar123_bkscms_sidebarmenu.php where you can a nested array which will then be converted to the content of the CMS side bar menu.
The initial array is as follows:
name, path are mandatory, whereas icon, children are optional
3.2 CrudViewHelper
Its purpose is to ensure the consistency in all views of your BKSCMS project by offering the following view piece:
-
Create a check-all button to check all view items, where \$color can be
-
Create a check button next to each item, where \$color can be , \$resource is the item instance
-
Create a button showing a active status, where $color can be , \$resource is the item instance, \$followRoute is the route to be directed to after clicking the button, \$text is the text inside the button
-
Create a button showing a disable status, where \$color can be , \$resource is the item instance, \$followRoute is the route to be directed to after clicking the button, \$text is the text inside the button
-
Create a button for removing all checked items, where \$color can be , \$followRoute is the route to be directed to after clicking the button, \$text is the text inside the button
-
Create a removal button for each item, where \$color can be , \$resource is the item instance, \$followRoute is the route to be directed to after clicking the button, \$text is the text inside the button
-
Create a text input for searching item, where \$searchRoute is the route to be sent to for searching, \$inputName is the name of the text input used for searching