Download the PHP package vladmunj/crud-generator without Composer
On this page you can find all versions of the php package vladmunj/crud-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package crud-generator
Crud Generator
Lumen package for generate crud controller,model and routes
Installation
Run commands below:
Environment Variables
After installing package change database connection settings and put SWAGGER_VERSION,PACKAGE_AUTHOR variable to your .env file:
DB_CONNECTION=YOUR_DB_TYPE[for example mysql,pgsql]
\
DB_HOST=DATABASE_HOST
\
DB_PORT=DATABASE_PORT
\
DB_DATABASE=DATABASE_NAME
\
DB_USERNAME=DATABASE_USERNAME
\
DB_PASSWORD=DATABASE_PASSWORD
SWAGGER_VERSION=3.0
\
PACKAGE_AUTHOR=AUTHOR_NAME
Configuration
Add CrudGeneratorProvider to providers section in bootstrap/app.php:
Uncomment the $app->withEloquent() and $app->withFacades() call in your bootstrap/app.php:
Run package migrations:
Usage
Before use command you need to create and run migration, that creates table for CRUD operations, for example:
Commands
Command will ask you required parameters to make CRUD:
Controller name:
\
>
\
CRUD url:
\
>
\
Model name:
\
>
\
Table name:
\
>
- Controller name: name of controller for CRUD operations.
-
CRUD url: route for CRUD operations. For example, value api/test will generate routes like this:
- Model name: name of model for CRUD operations.
- Table name: name of table for CRUD operations.
You can check new routes with command
Additional commands:
Delete crud route group by id, or all route groups, if you set id = 0
Generate CRUD for all your tables. You can set names of tables, that will be excluded from generation. Default names of tables, that will be excluded: 'users','crud_route_groups','migrations'.
All versions of crud-generator with dependencies
flipbox/lumen-generator Version ^9.2.0
awobaz/compoships Version ^2.2.3