API Generator

To generate API, we have the following command,

php artisan infyom:api $MODEL_NAME

Where $MODEL_NAME should be replaced with our model name, e.g.

php artisan infyom:api Post
php artisan infyom:api Project

Scaffold Generator

To generate scaffold, we have the following command,

php artisan infyom:scaffold $MODEL_NAME

Where $MODEL_NAME should be replaced with our model name, e.g.

php artisan infyom:scaffold Post
php artisan infyom:scaffold Project

Just enter whatever fields you want with database type, html input type, laravel validations and if the fields should be searchable or not. Once you are done, type "exit" to finish.

API & Scaffold Generator

Even API and Scaffold can be generated combined

php artisan infyom:api_scaffold $MODEL_NAME

Here is the full guide for field inputs. We also have an option for passing fields from json file here.

Also, Generator supports various other commands to generate files individually like generating an only model, repository or controller etc. You can find a full doc here.

results matching ""

    No results matching ""