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

Is there a way to specify views to be generated? #87

Closed
phillipmadsen opened this issue Mar 24, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@phillipmadsen
Copy link
Contributor

commented Mar 24, 2016

Wondering it there is a way to specify views that are to be generated.

example:

php artisan infyom:api_scaffold Profile index show --fieldsFile='resources/model_schemas/Profile.json' 

which makes all crud files but with only index.blade.php and show.blade.php and only index and show methods in the controller and routes?

@mitulgolakiya mitulgolakiya added this to the 0.2 milestone Mar 26, 2016

@mitulgolakiya mitulgolakiya modified the milestones: 0.1, 0.2 May 20, 2016

mitulgolakiya added a commit that referenced this issue Jun 5, 2016

@mitulgolakiya

This comment has been minimized.

Copy link
Member

commented Jun 5, 2016

@phillipmadsen I have added option --views to specify to generate only specific views.

You can specify any comma separated values from this like: --views=index,create,edit,show.

@mitulgolakiya mitulgolakiya added completed and removed in-progress labels Jun 5, 2016

wtom pushed a commit to wtom/laravel-generator that referenced this issue Jul 20, 2016

wtom
Merge commit '4044c8c3e6c1b5541244b7117b0f7677ca7702bb' into create_u…
…pdate_relationships

* commit '4044c8c3e6c1b5541244b7117b0f7677ca7702bb': (32 commits)
  InfyOmLabs#102 patch route added
  =fixed route named prefix in controllers
  Applied fixes from StyleCI
  InfyOmLabs#194 fields not generated fix
  fixed instruction
  Applied fixes from StyleCI
  InfyOmLabs#155 diff routes when prefix is used
  Applied fixes from StyleCI
  InfyOmLabs#87 option to specify to generate only specific views
  InfyOmLabs#172 cli option to turn on/off datatables
  Applied fixes from StyleCI
  InfyOmLabs#179 InfyOmLabs#174 InfyOmLabs#166 AppBaseController uses prefix now
  InfyOmLabs#155 prefix fixes
  return Not Found HTTP CODE 404 to pass ApiTest
  update to seperate directories
  added instructions for using the new prefixes
  Updated to use prefixes
  Updated to use the new prefixes
  InfyOmLabs#166 InfyOmLabs#174 appbase controller fix
  rename ROUTES_AS_PREFIX to VIEW_PREFIX
  ...

wtom pushed a commit to wtom/laravel-generator that referenced this issue Jul 20, 2016

wtom
Merge commit '4044c8c3e6c1b5541244b7117b0f7677ca7702bb'
* commit '4044c8c3e6c1b5541244b7117b0f7677ca7702bb': (32 commits)
  InfyOmLabs#102 patch route added
  =fixed route named prefix in controllers
  Applied fixes from StyleCI
  InfyOmLabs#194 fields not generated fix
  fixed instruction
  Applied fixes from StyleCI
  InfyOmLabs#155 diff routes when prefix is used
  Applied fixes from StyleCI
  InfyOmLabs#87 option to specify to generate only specific views
  InfyOmLabs#172 cli option to turn on/off datatables
  Applied fixes from StyleCI
  InfyOmLabs#179 InfyOmLabs#174 InfyOmLabs#166 AppBaseController uses prefix now
  InfyOmLabs#155 prefix fixes
  return Not Found HTTP CODE 404 to pass ApiTest
  update to seperate directories
  added instructions for using the new prefixes
  Updated to use prefixes
  Updated to use the new prefixes
  InfyOmLabs#166 InfyOmLabs#174 appbase controller fix
  rename ROUTES_AS_PREFIX to VIEW_PREFIX
  ...
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.