Showing 10 of 2,044 results.

Laravel 5: Creating Eloquent Models for Testing With factory

…class 3 ) ; 4 5 function factory ( 6 $ class , 7 string $ modelName 8 ) ; 9 10 function factory ( 11 $ class , 12 int $ numberOfModels 13 ) ; 14 15 function factory ( 16 $ class , 17 string $ modelName , 18 int $ numberOfModels 19 ) ;The factory...

Custom Filter Groups | Advanced Filtering

The filter syntax can get quite long if your chaining multiple filters, or be annoying to keep updated if you're using them in many places (and not using Statamic partials). To help with this, you can define a filter group like so: 1 <?php 2 3 use...

Laravel Miscellaneous Helper Function: windows_os

windows_os The windows_os helper function can be used to determine if the host server is running a Microsoft Windows® operating system. The function returns either true —if the server is running Windows®—or false —if the server is not running...

Managing Comments

Meerkat provides many options to help moderate and manage comments from the Statamic Control Panel. Management options will appear below the comment's content: The exact options that will appear to users depends on how the site's administrator has...

Directive Spacing | The Validate Command

Class : DirectiveSpacingValidator The directive spacing validator emits a validation error when a directive does not have sufficient leading or trailing whitespace. The following template: 1 < span class = " @if @endif " > </ span > produces the...