Showing 10 of 1,204 results.

Laravel 5: Conditionally Throwing Exceptions With throw_if

The throw_if function can be used to throw an exception if the supplied $boolean value evaluates to true . The supplied $parameters will be passed along to the exception's constructor.The signature of the throw_if function is: 1 function throw_if...

Laravel Application Helper Function: event

event($event, $payload = [], $halt = false) The event helper is a convenient way to dispatch a particular $event to its listeners. An optional $payload of data can also be supplied when dispatching the event. When the event is dispatched, all its...

An Introduction to Filter Expressions | Basic Filtering

The basic filters cover the vast majority of filtering use-cases, but do not account for everything. Because of this, Meerkat's responses tag accepts a filter parameter. The filter parameter accepts a single filter expression as its only argument....

BuildResources | The Statamic Add-on Roundup

The BuildResources add-on only provides some incredibly specialized console commands. There is a section of the site Technology Resources . This section of the site parses many of the "awesome" lists that can be found on GitHub and provides...

The Function | Laravel and Kint Debugging

…s to work really nice with Laravel. Add this function to some helpers file, or a file that is accessed throughout your application: 1 if ( ! function_exists ( ' lk ' ) ) 2 { 3 /** 4 * Dump information about variables that Laravel will like. 5 * 6...

Laravel Application Helper Function: view

…if ( view ( ) -> exists ( ' welcome ' ) ) { 5 // The welcome view exists. 6 } When arguments are supplied to the view function an internal call to Factory::make will take place and the created View instance will be returned as the result. The...

Filter Search