Skip to content

fix: generate policy when using module:make-model - #2170

Open
metinbolat wants to merge 1 commit into
nWidart:masterfrom
metinbolat:fix/module-make-model-policy
Open

fix: generate policy when using module:make-model#2170
metinbolat wants to merge 1 commit into
nWidart:masterfrom
metinbolat:fix/module-make-model-policy

Conversation

@metinbolat

Copy link
Copy Markdown

Description

When using module:make-model with the --policy option, the model, migration, factory, and seeder are generated correctly, but the policy is not created.

For example:

php artisan module:make-model -fmsp Tenant IdentityAccess

The policy is expected to be generated along with the other requested files.

Changes

  • Fixed policy generation when the --policy option is passed to module:make-model.
  • Added a regression test for policy generation.

Fixes #2167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--policy flag in module:make-model fails to generate policy

1 participant