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

Investigate route parameters with Ziggy #102

Open
Tracked by #98
ollieread opened this issue Feb 5, 2025 · 1 comment
Open
Tracked by #98

Investigate route parameters with Ziggy #102

ollieread opened this issue Feb 5, 2025 · 1 comment
Assignees
Labels
status: investigating The issue is being investigated status: planning The issue is being planned for the future

Comments

@ollieread
Copy link
Member

Within Laravel, tenant route parameters are automatically provided thanks to the various tenancy bootstrappers. When using Ziggy, the parameters need to be manually provided, which is an additional piece of work made even more complicated by the fact that the parameter names are dynamic.

I need to look into the possibility of rectifying this, or at the very least, documenting it.

@ollieread ollieread added status: investigating The issue is being investigated status: planning The issue is being planned for the future labels Feb 5, 2025
@ollieread ollieread self-assigned this Feb 5, 2025
@ollieread ollieread moved this to Backlog in Sprout Development Feb 5, 2025
@ollieread
Copy link
Member Author

To set a default parameter in Ziggy, the following needs to be set on the router:

_config.defaults.{parameter} = {identifier}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: investigating The issue is being investigated status: planning The issue is being planned for the future
Projects
Status: Backlog
Development

No branches or pull requests

1 participant