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

Custom stub template types #208

Open
relayer464 opened this issue Oct 18, 2024 · 1 comment
Open

Custom stub template types #208

relayer464 opened this issue Oct 18, 2024 · 1 comment

Comments

@relayer464
Copy link

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!

@MikeAlhayek
Copy link
Collaborator

@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.

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

No branches or pull requests

3 participants
@relayer464 @MikeAlhayek and others