mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
13 lines
No EOL
546 B
Markdown
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 🍃 😍 |