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

Fix anonymous component views for Laravel 12 #1141

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

joshhanley
Copy link
Member

The scenario

Current components that use the Flux delegate component to dynamically load components, like icons, aren't loading on Laravel 12.

image

The problem

The issue is that in Laravel 12 the Blade compiler's anonymous component path has been updated to use a faster hashing algorithm instead of md5 laravel/framework#52301.

The solution

The solution is we need to update Flux's component checks and delegate component generation to detect whether Laravel 12 or newer is being used and use the new hashing algorithm if so.

@calebporzio calebporzio merged commit 424d88f into main Feb 21, 2025
@calebporzio calebporzio deleted the josh/fix-anonymous-components-laravel-12 branch February 21, 2025 13:00
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.

2 participants