Skip to content

[12.x] Improve consistency in _if and _unless functions #10537

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

Merged

Conversation

AhmedAlaa4611
Copy link
Contributor

Description

Currently, we use ... if a given boolean expression evaluates to ... with the following functions:

  • abort_if()
  • abort_unless()
  • broadcast_if()
  • broadcast_unless()
  • throw_if()
  • throw_unless()

But, we use ... if the given condition is ... with only:

  • report_if()
  • report_unless()

So, let's refind them.

@taylorotwell taylorotwell merged commit 388799f into laravel:12.x Jun 26, 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