Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add the the str_before extra helper, it's the inverse of str_after #19940
This PR adds an extra string helper,
My use case was:
I have an invitation system where I want to create a user with just the email while creating it with a name.
Which would be from
Since Laravel already has a str_after, for me it made sense that this one would be a no-brainer addition.
Hope this is helpful if not at least it was fun, the process of contributing.