Showing 10 of 1,280 results.

Example Use | Laravel 5 String Helpers: Pluralization and Strings

The method takes the $value that should be pluralized, and the $count of the items. If the $count is equal to 1 , the original $value is returned. 1 use Illuminate \ Support \ Str ; 2 3 // cow 4 echo Str :: plural ( ' cow ' , 1 ) ; 5 6 // cows 7...

Step 1: The Presenter | Semantic UI Paginator for Laravel 4

First, we are going to write a SemanticPresenter class. This class is what Laravel 4 will use when constructing the links for the pagination elements. So let's start it. Create a new file named SemanticPresenter.php somewhere where composer and...