Showing 10 of 2,133 results.

addDocumentValidator | Validating Workspaces

Adds a single document validator instance to the internal BladeValidator instance. Argument Description $validator The document validator. 1 <?php 2 3 use Stillat \ BladeParser \ Validation \ AbstractDocumentValidator ; 4 use Stillat \ BladeParser...

withValidator | Validating Workspaces

Adds a validator instance to the internal BladeValidator instance. Argument Description $validator The validator instance. 1 <?php 2 3 use Stillat \ BladeParser \ Validation \ AbstractNodeValidator ; 4 use Stillat \ BladeParser \ Workspaces \...

Laravel 5: Sorting Arrays With sort

The sort helper method will allow you to sort the given $array based on some condition returned by the $callback . The method works by iterating over all the values in the $array and passing the values it finds into the $callback function. It then...

Defining Custom Filters | Basic Filtering

Meerkat's data query system supports custom filters, as well. Please consult the Advanced Filtering article to learn how to create custom filters, filter groups, and more.

Laravel 5: Hashing Strings With bcrypt

The bcrypt function will return a hashed representation of the given $value . The bcrypt function also accepts an array of $options which can be used to affect how the hash is computed. Each invocation of the bcrypt function should produce a...

Example Use | Laravel 5.5 String Helper Method: finish

1 use Illuminate \ Support \ Str ; 2 3 // /home/path/ 4 echo Str :: finish ( ' /home/path ' , ' / ' ) ; 5 6 // /home/path/ 7 echo Str :: finish ( ' /home/path/ ' , ' / ' ) ; 8 9 // Sentences should end with a period, or full stop. 10 echo Str ::...

Title | General Metadata

…itle method queues a <title></title> tag. By default it binds to the $title variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6 Metadata :: resolve ( ' title ' ,...

First Link | General Metadata

…rst" href="..."> tag. By default it binds to the $meta_link_first variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6 Metadata :: resolve ( ' meta_link_first ' ,...

Last Link | General Metadata

…"last" href="..."> tag. By default it binds to the $meta_link_last variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6 Metadata :: resolve ( ' meta_link_last ' ,...