Showing 10 of 2,044 results.

Laravel String Helper Function: is

The is helper method will indicate if the given $value matches the given $pattern . If the $value is the $pattern or if the $value matches the $pattern , the method will return true , otherwise it returns false . The signature for the is helper...

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...