You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for creating this wonderful CRUD generator!
I was just wondering if there is a way to create custom stub templates? I have successfully copied the default stub template folder and have modified some of the existing stubs and generated custom controllers, blade files, etc. However, I would like to create stub templates for file types not already represented (for example, Laravel authorization policies, so something like policy.stub). Just wondering if this is possible, and if so, how?
If this isn't possible, I would like to suggest this as an enhancement.
Thanks!
The text was updated successfully, but these errors were encountered:
@relayer464 there is no command that would create policy for you. So you can't really create a policy stub.
If you are up for the challenge, submit a PR that would introduce create:policy command which exposes a new policy stub. This way you can customize the policy as needed.
Greetings,
First, thanks for creating this wonderful CRUD generator!
I was just wondering if there is a way to create custom stub templates? I have successfully copied the default stub template folder and have modified some of the existing stubs and generated custom controllers, blade files, etc. However, I would like to create stub templates for file types not already represented (for example, Laravel authorization policies, so something like policy.stub). Just wondering if this is possible, and if so, how?
If this isn't possible, I would like to suggest this as an enhancement.
Thanks!
The text was updated successfully, but these errors were encountered: