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

[11.x] Add a setAssetRoot method to the UrlGenerator class #54530

Merged
merged 4 commits into from
Feb 10, 2025

Conversation

ollieread
Copy link
Contributor

This is a simple PR that introduces a setAssetRoot method to the UrlGenerator class, which sets UrlGenerator::assetRoot. Before this, the only way to change that value was to update the config and for the UrlGenerator class to be resolved again if it had already been resolved.

This is particularly useful for fringe issues with things like Livewire and Filament, where sometimes assets are referenced with routes that break CORS.

fix
@taylorotwell taylorotwell merged commit b544b83 into laravel:11.x Feb 10, 2025
27 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants