Showing 10 of 2,055 results.

Compiling Workspaces

Compiling workspaces is similar to compiling individual documents. The main difference is that the workspace compiler will save the results to a directory on the filesystem. The output directory should already exist, and the PHP process compiling...

Special Cases for Laravel's Singular Pluralization Feature

Any words, or word endings, in the following table will not be affected by the singular method. This is either because the resulting word is already singular, or because there is no inflection available. Word endings are denoted by the prefix * :...

A Guidance Engine | Thoughts on a "Guidance Engine"

A lot of people probably though of search engines at the end of that last section. After all, that is what search engines are supposed to do: expose content from around the web. However, I find search engines distracting. For one thing, you may...

Laravel 5: Conditionally Throwing Exceptions With throw_unless

The throw_unless helper function is the logical counterpart to the throw_if helper function. If the provided $boolean value evaluates to false , a new instance of the provided exception will be created and thrown. Any parameters specified will be...

Example Use | Laravel 5: String Translation Public API

…mples, we will create a new JSON-based language file at resources/lang/example.json : 1 { 2 " validation.accepted " : " The :attribute is required, resolved from 3 our example JSON file. " 4 } In the following example, we will use the getFromJson...

Laravel Application Helper Function: view

…is section will make use of the default welcome.blade.php example view file that ships with new Laravel installations. If no arguments are supplied to the view helper function, the Factory implementation will be returned and all available Factory...

Author Variables | Default Variables

By default, Meerkat provides an author array and an internal_parent_author array (if the comment is a reply). These arrays will contain the following additional information: Variable Description {{ id }} The author's identifier, or null . {{ email...

Laravel Collection Public API: only

only($keys) The only method is the logical opposite of the except method. The only method is used to return all the key/value pairs in the collection where the keys in the collection are in the supplied $keys array. Internally, this method makes a...

sortBy Options | Laravel Collection Public API: sortBy

The $options parameter allows developers to change the sorting behavior of the sortBy method. The accepted options are the same options that are defined for PHP's sort function. The following collection instance will be used throughout this...