Showing 10 of 2,055 results.

Introduction & Installation

…addon for Statamic that helps create HTML attribute strings from arrays. At a high level, it allows you to convert something like this: 1 <?php 2 3 use function Stillat \ StatamicAttributeRenderer \ attributes ; 4 5 attributes ( [ 6 ' name ' => '...

getErrors | Blade Compiler

Retrieves a collection of all parser errors. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function getErrors ( ) : Collection ;

getExtensions | Blade Compiler

Get the extensions used by the compiler. Retrieves all extensions registered with the compiler via the extend method. 1 <?php 2 3 public function getExtensions ( ) : array ;

Example Use | Laravel 5: Sorting Arrays With sort

Let's refactor our students example from the where section to use a class based structure. First, we will create a new StudentTestResult class: 1 class StudentTestResult { 2 3 public $ name = ' ' ; 4 5 public $ testScore = ' ' ; 6 7 public...

Example Use | Laravel 5: String Translation Public API

The following example will resolve a translator instance from the service container and get the current MessageSelector instance. 1 <?php 2 // Ask the Service Container for a translator instance. 3 $ translator = app ( ' translator ' ) ; 4 5 //...