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

Use segments in resource URI & Name? #1

Open
AkenRoberts opened this issue Aug 17, 2018 · 0 comments
Open

Use segments in resource URI & Name? #1

AkenRoberts opened this issue Aug 17, 2018 · 0 comments

Comments

@AkenRoberts
Copy link
Contributor

AkenRoberts commented Aug 17, 2018

When creating a set of resource Actions that use a nested directory, the previous segments are ignored when creating the route URI and names.

Example command:

php artisan make:action Admin/Post --resource

Example route annotation generated:

@Route("post", middleware="web", name="post.index")

Suggested output, which utilizes any segments:

@Route("admin/post", middleware="web", name="admin.post.index")
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

No branches or pull requests

1 participant