Showing 10 of 2,055 results.

Example Use | Laravel 5 String Helpers: ends_with global helper

1 use Illuminate \ Support \ Str ; 2 3 // true 4 Str :: endsWith ( ' A simple sentence. ' , ' . ' ) ; 5 6 // false 7 Str :: endsWith ( ' No punctuation here ' , ' . ' ) ; 8 9 // false 10 Str :: endsWith ( ' Case matters ' , ' S ' ) ; 11 12 // true...

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

withValidator | Validating Documents

…or The validator instance. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 use Stillat \ BladeParser \ Validation \ AbstractNodeValidator ; 5 6 public function withValidator ( 7 AbstractNodeValidator $ validator 8 ) : Document ;...

Event Methods | Advanced Reply Forms

Meerkat will call various methods throughout the reply process. You can tap into these by supplying your own implementation for the submit , canceled , and replyOpen methods.

submit Event Method | Advanced Reply Forms

The sumbit() method is called when a visitor clicks on the "Submit Reply" button. This method is wired up to the form's submit event, so you can do anything you'd like here: 1 MeerkatReply . submit = function ( evt ) { 2 // Handle the form. 3...