Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

AhmedAlaa4611
Copy link
Contributor

Description

This PR reverts #56684 and #56807 to resolve a breaking change introduced to the secure_url() helper.

Previously, when passing null as the path, users were able to call methods on the underlying UrlGenerator instance. After these changes, the following error occurs:

Call to a member function current() on string

Reverting ensures consistent behavior, since secure_url() should behave the same as url(), with the only difference being that it generates secure (HTTPS) URLs.

@taylorotwell taylorotwell merged commit 71726ff into laravel:12.x Sep 2, 2025
65 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.

2 participants