You want to use a translation with pluralization rules in your Blade template.
Use the Blade
This would output the message from your
messages.php language file using the
items key when the count is 1.
If your message has placeholders, you can specify them with an additional array argument.
@choice('message.items', 3, ['type' => 'widget']);
This would replace any
:type in the message with the word
widget. Note that the
:count placeholder is automatically set.
The recipe Getting a Translation Using Pluralization Rules provides more details how the
Lang::choice() method works. The Blade
@choice command uses the