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

Add artisan setup commands #56

Merged
merged 8 commits into from
Jun 13, 2019
Merged

Conversation

antonkomarev
Copy link
Member

@antonkomarev antonkomarev commented Jun 13, 2019

This PR introduces 2 new Artisan commands designed in #53.

Create database migration which let application model to register as Reacter:

$ php artisan love:setup-reacterable --model="App\User"

Create database migration which let application model to register as Reactant:

$ php artisan love:setup-reactable --model="App\User"

If not all models should be registered as Reacter or Reactant just append --nullable flag to the command.

$ php artisan love:setup-reacterable --model="App\User" --nullable

Note: These commands generates migration files. You need to run migrations manually.

Resolves issues:

@antonkomarev antonkomarev added this to the v6.2.0 milestone Jun 13, 2019
@antonkomarev antonkomarev merged commit 4a65521 into master Jun 13, 2019
@antonkomarev antonkomarev deleted the add/console-setup-commands branch June 13, 2019 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add console command to add columns to application tables
1 participant