Skip to content

Conversation

AhmedAlaa4611
Copy link
Contributor

Description

This PR clarifies the behavior of the head() and last() helpers when used on an empty array. It helps developers understand that the method will return false in such cases, which might not be immediately obvious.

Note

I used the same tone that we have used elsewhere in the docs.

@taylorotwell taylorotwell merged commit 0a19df6 into laravel:12.x Jul 15, 2025
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