Open relayer464 opened 2 weeks ago
@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!