Showing 10 of 2,133 results.

Creating the PrettyPaginator Class | Laravel Paginator Pretty URLs

…e named PrettyPaginator.php somewhere where Laravel and Composer can find it. For this tutorial, I will just be declaring it in the global namespace. Also, make sure to import (or use ) Laravel's Paginator class: 1 <?php 2 3 use Illuminate \...

Social Media Images

Tidal utilizes the Social Media Image Kit addon to generate and manage social media images for your documentation site.Tidal expands on the Social Media Image Kit configuration and allows you to specify a social media image profile that will be...

getLineExcerpt | Text Extraction

Retrieves the requested line number, and a specified number of lines surrounding it. The keys of the returned array will correspond to the line number the text was extracted from. Argument Description $lineNumber The target line number. $radius...

Laravel Array Helper Function: array_collapse

The collapse helper method accepts an array as its only parameter. The given $array can be a single array, or a nested array. The method will then return a new array with the contents of all the nested arrays. Arrays that are collapsed can contain...

Swapping Antlers Layouts and Passing Data to Layouts

…rticle, we will work through creating a custom Statamic Tag. Our custom tag will allow us to dynamically change the layout used by an Antlers template, similar to Blade's @extends directive. The results of this article are available as a Statamic...

Getting an Input Element's Value | Laravel 4: Getting User Input

Inside of our route, we can use the get method on the Input facade to get our input, and it really is as easy as doing this: 1 <?php 2 3 Route :: post ( ' user/create ' , function ( ) 4 { 5 // Get the user's first and last name. 6 $ firstName =...

registerCustomComponentTags | The Document Parser

Registers multiple custom component tag names. Argument Description $tagNames The tag names. 1 <?php 2 3 use Stillat \ BladeParser \ Parser \ DocumentParser ; 4 5 public function registerCustomComponentTags ( 6 array $ tagNames 7 ) : DocumentParser ;