1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/str-gtplural-lets-you-convert-words-to-their-right-form-based-on-a-provided-amount.md
Samuel Štancl c8f91bbe4b Week 25/2022
2022-06-26 21:38:42 +02:00

13 lines
No EOL
546 B
Markdown

---
title: 'str()->plural() lets you convert words to their right form based on a provided amount'
tweet_id: '1540401129363623936'
thread_slug: weekly-thread-2022-25
author_username: ecrmnn
images:
- 'https://pbs.twimg.com/media/FV3zlAPVEAAWxIr.jpg'
created_at: 2022-06-24T18:27:03+00:00
slug: str-gtplural-lets-you-convert-words-to-their-right-form-based-on-a-provided-amount
---
Printing a word in singular or plural form depending on the number of items is usually a pain.
With Laravel Str / Stringable however, it's a breeze 🍃 😍