Showing 10 of 2,133 results.

Validating Documents

The document validation system provides a convenient wrapper around the Blade Parser's validation system. Using the validation system, we can quickly run any number of validators against our input document to catch potential compilation or runtime...

validator | Validating Documents

Returns access to an internal BladeValidator instance. If a validator instance does not already exist, one will be automatically created by calling the ValidatorFactory::makeBladeValidator() method. 1 <?php 2 3 use Stillat \ BladeParser \...

toDocument | Blade Documents

…thod will take into account any changes made to the nodes that represent the current document. The new document created will use the adjusted document text as its source. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 5 public...

Laravel 5.5 String Helper Function: camel_case

Camel casing is similar to studly case such that each word starts with a capitalized letter, with the difference being the first character is lower cased. Like the studly method, the camel method will not affect the casing of the rest of the word.

Laravel 5: Performing HTTP Redirects With redirect

The redirect helper function is a useful helper function and makes the task of returning HTTP redirects much easier from controller actions or from routes. The $to parameter is defined with a default value of null . When $to is null , the redirect...

The Goal | Laravel Paginator Pretty URLs

When use the paginator in Laravel, we get URLs like this: 1 http://localhost:8000/users?page=1 and we want URLs like this 1 http://localhost:8000/users/page/1 because why not? When digging through the code for the paginator class, I found that the...