Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we have a flag for not adding entries to routes.php and api_routes.php #133

vesper8 opened this issue May 7, 2016 · 2 comments


None yet
2 participants
Copy link

commented May 7, 2016

I have to regenerate often as I modify the schema and everytime I have to undo the additions to the two routes files because the routes are already there and it just keeps appending more and more

@mitulgolakiya mitulgolakiya added this to the 0.1 milestone May 11, 2016


This comment has been minimized.

Copy link

commented May 11, 2016

@vesper8 great idea. Even we can give a support to skip one or more generate things. I will add a support for it.

mitulgolakiya added a commit that referenced this issue May 17, 2016


This comment has been minimized.

Copy link

commented May 17, 2016

@vesper8 I have added a support for skipping various files like migration, routes, controller, models etc.

If you want to skip routes generation then you can run a command something like,

php artisan infyom:api_scaffold Post --fieldsFile=resources/model_schemas/Post.json --skip=routes

Even I added support to skip multiple items like,

php artisan infyom:api_scaffold Post --fieldsFile=resources/model_schemas/Post.json --skip=routes,migration,model

I will add a detailed documentation later. But as of now, you can find a full list here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.