Before you create a CRUD, make sure you have prepared the database table that will be used.
To create a CRUD very easy, follow these steps:
First, click the Generator Module menu -> Add New Module
Then will come the four steps that you must enter.
In this step you are required to fill information about modules that you create.
|Module Name||Fill in with the name of the module|
|Table||Select the table that you will use for the module|
|Icon||Select the icon of the module merepresantasikan|
|Module Slug||Optional. Or you can fill with "slug" of the module. May not use special characters, can not use spaces|
If you want to simultaneously create a menu for the module, please check the on options like the image above.
After clicking the "Step 2" then the system will make you a new controller file in "app / Http / Controllers /".
The format of the file name created controller is "AdminNamaController.php" where prefix with the "Admin".
Once the file controller is made, you will still be able to customize the module by opening the file controller. In it there is a framework arrangement "scaffolding" for the column and form.
In this step you can make adjustments to the display module column.
|Column||Fill in with the name of the column|
|Name||Fill in the "Field" in accordance with the table columns|
|Join||Fill with a join table name if the column is "Foreign Key". You also have to fill in the "Field Name" to display the data on sebalah Join this column.|
|Callback PHP||Opsional. Contoh : number_format($row->amount)|
|Width||Fill the column width. If you fill 0 means the width is determined automatically by the system. (In Satun PX)|
|Image||If you choose Y then this column will be used as thumbnail|
|Download||If you choose Y then this column will be available for download|
In this step you can make adjustments on the display of the Module FORM
|Label||Fill in with the name of the column|
|Name||Fill in the "Field" in the table for that column|
|Type||Select the appropriate column type designation|
|Validation||Fill validation according to validation rules on laravel|
Select a number from 1-10. This figure is the width according to the rules Bootstrap. The greater the number, the column is widening
|Options||Each type of column would have these kinds of option itself. Therefore, be sure to fill out this option.|
* Make sure you fill in the options on the column - a column options as needed such as type "select, radio, select2"
In this step you can adjust some settings module.
|Title Field Candidate||Fill in the "Field" table that designation as a "name", "title", etc.|
|Limit Data||Fill it with numbers. This setting is used to limit the amount of data that appears on the module|
|Order By||Fill in the format [field], [asc | desc]. Example: id, desc. This setting is used to sort the data module.|
|Global Privilege||If "TRUE" then the module will be exempted from the right of access|
|Show Button Table Action||If "FALSE" then the action button in the table will be hidden|
|Button Action Style||You can set the display to the action button on the table, among others:|
button_icon = Action button in the form of "Button" and "Icon"
button_text = Action button in the form of "Button" and "Text"
button_icon_text = Action button in the form of "Button, Text, Icon"
dropdown = Action button in the form of "dropdown", suitable for the many options for action
|Show Button Add||If "FALSE" then the "Add Data" will be hidden|
|Show Button Edit|
If "FALSE" then "Edit" button on the table will be hidden
|Show Button Delete||If the "FALSE" then the "Delete" button in the table will be hidden, also the Delete button Selected|
|Show Button Detail||If "FALSE" then the "Details" button in the table will be hidden, also the Delete button Selected|
|Show Button Show Data|
If "FALSE" then the "Show Data" the module will be hidden
|Show Filtering And Sorting||If "FALSE" then the "Filter" will be hidden|
|Show Button Import||If "FALSE" then the "Import" will be hidden. By default this key set "FALSE"|
|Show Button Export||If "FALSE" then the "export" will be hidden. By default this key set "FALSE"|