Showing 10 of 1,280 results.

Handling Specific Numbers | Laravel 5: String Pluralization Syntax

Sometimes it is useful to associate a given message number with exactly one number. In previous examples, we've seen how to handle the pluralization case where the number of items is exactly 0 , however, we can expand this idea to any arbitrary...

Creating Negative Ranges | Laravel 5: String Pluralization Syntax

We could also create a range for all numbers less than zero: 1 <?php 2 3 return [ 4 5 ' ranges ' => 6 7 ' {0}No items 8 |[1,3]Between one and three 9 |[4,6]Between four and six 10 |[7,*]Seven and beyond! 11 |[*,-1]Less than zero ' 12 13 ] ; The...