Showing 10 of 2,055 results.

Laravel Helper Function: cookie

…ull an implementation of \Illuminate\Contracts\Cookie \Factory (which is an instance of \Illuminate\Cookie\CookieJar by default) is returned instead. When not being used to return a CookieJar instance, the cookie function makes a call to the make...

Laravel Collection Public API: random

random($amount = 1) The random method will retrieve a random $amount of items from the collection. By default, the random method will return only one item, however a different $amount can be passed in to change the number of items returned. If the...

Step 1.4 More Methods | Semantic UI Paginator for Laravel 4

Now that we have the first three methods implemented, we need to finish a few more: the getDots and render method. The getDots method is responsible for rendering the ellipsis when there is a lot of links. For the Semantic paginator, we are going...

Locale Alternate | Open Graph Metadata

The localeAlternate method queues multiple <meta property="og:locale:alternate" content=".."> tags. By default it will use the of the current entry. The logic for this is similar to the following example: 1 <?php 2 3 use Stillat \...

Laravel 5: View Error Bags

…ontains any errors. This functionality is facilitated by the "Illuminate\View\Middleware \ShareErrorsFromSession" middleware. The ViewErrorBag instance that is shared with views is given the name errors . Interacting with the ViewErrorBag...