Showing 10 of 2,133 results.

se_exception Tag

The se_exception tag is similar to Statamic's not_found tag, but can be used to trigger an exception. It's primary use-case is for testing, but can be sprinkled around your site's template wherever you'd like to throw an exception. 1 {{...

Laravel Artisan: The Tinker Command

The ability to easily interactive with your application to experiment or debug issues is an incredibly important thing. To help with this, Laravel provides a tinker command out of the box. The tinker command uses the PsySH library to setup a REPL...

Laravel Helper Function: csrf_token

csrf_token() The csrf_token (cross-site request forgery token) function is a shortcut for retrieving the CSRF token from the session storage. The following is an example of what the csrf_token function may output: 1 <?php 2 3 //...

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

Limitations of Liability | Licensing

YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE...

Creating Negative Ranges | Laravel 5: String Pluralization Syntax

We could also create a range for all numbers less than zero: 1 <?php 2 3 return [ 4 5 ' ranges ' => 6 7 ' {0}No items 8 |[1,3]Between one and three 9 |[4,6]Between four and six 10 |[7,*]Seven and beyond! 11 |[*,-1]Less than zero ' 12 13 ] ; The...