Example Use | Laravel 5 String Helpers: Getting the Singular Form of a String Value
1 use Illuminate \ Support \ Str ; 2 3 // cow 4 echo Str :: singular ( ' cows ' ) ; 5 6 // person 7 echo Str :: singular ( ' people ' ) ; 8 9 // curve 10 echo Str :: singular ( ' curves ' ) ; 11 12 // message 13 echo Str :: singular ( ' messages '...