Laravel Pro Tips
🔥Laravel squish() Method: The 𝘀𝗾𝘂𝗶𝘀𝗵 method removes all unnecessary white space from a string, including unnecessary white space between words. #Laravel
See how you can use it in your application 👇
🔥 #Laravel Tip: Hot off the press, the latest release includes the ‘squish’ global helper method by @DwightConrad. It removes all extraneous white space from a string, including between words. It’s like ‘trim’ on steroids :)
🔥 #Laravel Tip: When you need to perform multiple operations on a string, make use of Laravel’s fluent string builder. It’s a great way to keep your code readable and it makes it way more easier to maintain.
✨ In Laravel, you can use the 'wrap' method to prepend and append to your strings.
This can be super useful if you're building up dynamic sentences or phrases to display to your users!
Ash Allen 🚀
🔥 #Laravel Tip: Version 9 introduces the ‘str’ global helper method, which makes it easier to work with the fluent Stringable class by removing the need to import it every time.
Pretty cool string helper method
Freek Van der Herten 🔭
No articles were found.