Showing 10 of 2,044 results.

hasErrorOnLine | Blade Compiler

Tests if an error matching the provided properties exists on a specific line. Argument Description $line The line to check. $type The error type to check for. $context The error context. 1 <?php 2 3 use Stillat \ BladeParser \ Errors \ ErrorType ;...

Laravel Artisan Generator Command: The make:provider Command

…oviders are stored in the app/Providers directory. This command will not overwrite any existing service provider classes that have the same name. An error stating Provider already exists! will be displayed instead. The following example...

Accessing the Blueprint | Configuring the Blueprint

From within the Statamic Control Panel, select the "Blueprints" menu option on the left (labeled "1" in the figure below). Once the Blueprints page has loaded, Meerkat will have automatically added a new "Meerkat Comments" option (labeled "2" in...

Example Use | Laravel 5: Excluding Items From an Array With except

The following examples assume that the $_POST super-global contains the following information: 1 array { 2 [ " first_name " ] " John " 3 [ " last_name " ] " Doe " 4 [ " password " ] " some_password " 5 } We could easily get all the information...

TechResources | The Statamic Add-on Roundup

…t can be seen on the Technology Resources section of the site are implemented as Laravel Blade templates. The reason this was done was to leverage Collection chunking as well as partial view rendering (also, complicated logic could be done in PHP...

RouteList | The Statamic Add-on Roundup

The RouteList is another add-on that is freely available to the Statamic community (you can read specific details about it at https://github.com/JohnathonKoster/statamic-route-list-command ). I am really comfortable developing applications with...

se_cm_to_hljs Modifier

…convert a Code Mirror language identifier to a Highlight.js language identifier. The target scenario is using Statamic's Code fieldtype in the Control Panel, and using Highlight.js to provide syntax highlighting on the front-end. 1 {{...