laravel add (s) at the end of text based on how many data

73

echo Illuminate\Support\Str::plural('list', 1); // list
echo Illuminate\Support\Str::plural('list', 2); // lists

Comments

Submit
0 Comments