Showing 10 of 1,090 results.

Laravel String Helper Function: camel

…tudly case such that each word starts with a capitalized letter, with the difference being the first character is lower cased. Like the studly method, the camel method will not affect the casing of the rest of the word. The signature of the camel...

Creating Our Own make() Method | Laravel Paginator Pretty URLs

…so make sure to use the Illuminate\Support\Facades\App facade. In our PrettyPaginator class, add the following function: 1 ... 2 3 /** 4 * Get a new pretty paginator instance. 5 * 6 * @param array $items 7 * @param int $total 8 * @param int |...

Laravel 5.5 String Helper Method: title

This method will convert the given $value to look like a traditional print title. This method essentially will transform the entire $value to its lower cased equivalent and then uppercase the first character of each word it finds. This method may...

Laravel 5.5 String Helper Method: contains

The contains helper method will check if any of the $needles are in the given $haystack . If any of the given $needles are found in the $haystack , the method will return true , otherwise it returns false . $needles can be any value that can be...

Video Asset | Open Graph Metadata

The videoAsset method method accepts an Asset instance and generates the following meta tags based on the asset's information: 1 <meta name="video" property="og:video" content="..."> 2 <meta property="og:video:type" content="..."> 3 <meta...

Filter Search