Download the PHP package matheus-carvalho/crud-generator without Composer
On this page you can find all versions of the php package matheus-carvalho/crud-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download matheus-carvalho/crud-generator
More information about matheus-carvalho/crud-generator
Files in matheus-carvalho/crud-generator
Download matheus-carvalho/crud-generator
More information about matheus-carvalho/crud-generator
Files in matheus-carvalho/crud-generator
Vendor matheus-carvalho
Package crud-generator
Short Description Generate a CRUD with Model, Controller, routes, FormRequest and views based on given Migration.
License MIT
Package crud-generator
Short Description Generate a CRUD with Model, Controller, routes, FormRequest and views based on given Migration.
License MIT
Please rate this library. Is it a good library?
Informations about the package crud-generator
CRUD GENERATOR for Laravel
Crud Generator provides a complete experience of develop an entire CRUD only writing the migration file.
Installing via Composer
Publish the CSS and Config folder
Usage
- Create your migration and fill up the fields.
- Open a cmd on project root and type:
Simple example
-
Creating the migration.
-
Filling up the migration.
- Generating the CRUD.
Available column types example
-
Creating the migration.
-
Filling up the migration.
- Generating the CRUD.
Tips
- The combination of
foreignId()
andconstrained()
methods is essential to make foreign keys work. - The
cascadeOnDelete()
method is optional. - Take note on snake_case naming pattern.
Options
Option | params | Description |
---|---|---|
table | string | Table name (snake_case). |
resource | string | Resource name (PascalCase) which will be used to name all files. |
--style | [default, none] | Specifies the style. Default = default. |
--language | [br, en] | Specifies the language. Default = en. |
Configs
After you had published the css and config folders, you can navigate to config/crudgenerator.php and edit some configs, they are:
Config | Default | Description |
---|---|---|
language | en | Specifies the language of texts inside the files. Accepts 'br' for 'Português brasileiro' or 'en' for 'English'. |
style | default | Specifies the style of views. Accepts 'default' for default css file or 'none' for raw html. |
pagination_per_page | 5 | Specifies the number of elements should be rendered on each page at index's table. Accepts any positive value. |
- After you edit any config, please be sure of run the
php artisan config:cache
command to apply your changes.
Output
After running the php artisan generate:crud awesome_products AwesomeProduct
command, you'll be able to find these files in your project:
App\Http\Controllers\AwesomeProductController.php
App\Models\AwesomeProduct.php
App\Http\Requests\AwesomeProductRequest.php
routes\web.php
resources\views\awesome_product\create.blade.php
resources\views\awesome_product\index.blade.php
resources\views\pagination\crudgenerator.blade.php
All versions of crud-generator with dependencies
PHP Build Version
Package Version
No informations.
The package matheus-carvalho/crud-generator contains the following files
Loading the files please wait ....