codelife / codelife-model-generator-helper
This is a model generator made by Jexter Tomas
dev-main
2023-04-22 13:50 UTC
Requires
- php: >=5.5
- doctrine/dbal: ^3.6
This package is auto-updated.
Last update: 2025-06-22 19:00:18 UTC
README
Installation:
You can install this plugin into your Laravel application using composer.
The recommended way to install composer packages is:
composer require codelife/codelife-model-generator-helper
If above code does not work try:
composer require codelife/codelife-model-generator-helper:dev-main
# OR
composer require codelife/codelife-model-generator-helper:dev-master
Publish assets for the default design with the below command:
php artisan vendor:publish --provider="Codelife\CodelifeModelGeneratorHelper\Providers\ModelHelperServiceProvider" --tag="assets"
Usage:
Create view:
php artisan create:crud-view `ModelName/TableName` ...Options... (-P "Prefix\Name" | Prefix\Name) | (--prefix="Prefix\Name" ) ...If you want an Asynchronus Ajax And Json View, You can pass --ajaj option... (--ajaj)
Create controller:
php artisan create:crud-controller `ModelName/TableName` ...Options... (-P "Prefix\Name" | Prefix\Name) | (--prefix="Prefix\Name" ) ...If you want an Asynchronus Ajax And Json Controller, You can pass --ajaj option... (--ajaj)
Create route:
php artisan create:crud-route `ModelName/TableName` ...Options... (-P "Prefix\Name" | Prefix\Name) | (--prefix="Prefix\Name" )
Create model:
php artisan create:model `ModelName/TableName` ...Options... (-O "Table1/Table2," | Table1/Table2) | (--hasOne="Table1/Table2" ) (-B "Table1/Table2," | Table1/Table2) | (--belongsTo="Table1/Table2" ) (-M "Table1/Table2," | Table1/Table2) | (--hasMany="Table1/Table2" )
Create Model, View, Controller and Route at once:
php artisan create:all `ModelName/TableName` ...Options... (-P "Prefix\Name" | Prefix\Name) | (--prefix="Prefix\Name" ) (-O "Table1/Table2," | Table1/Table2) | (--hasOne="Table1/Table2" ) (-B "Table1/Table2," | Table1/Table2) | (--belongsTo="Table1/Table2" ) (-M "Table1/Table2," | Table1/Table2) | (--hasMany="Table1/Table2" ) ...If you want an Asynchronus Ajax And Json Controller, You can pass --ajaj option... (--ajaj)
You can donate me in the following platforms to show your support and appreciation:
Paypal Account: https://www.paypal.me/jexszcy Gcash Account: 09218356618