Showing 10 of 2,133 results.

withCoreValidators | Validating Workspaces

Includes the core validators on the internal BladeValidator instance. If a BladeValidator instance does not already exist on the document, a new one will be created automatically via the ValidatorFactory::makeBladeValidator() factory method. Under...

setExtensions | Blade Compiler

Sets and overrides all compiler extensions. This method will override any extension that had been previously registered with the extend method. In default setups, this is set to the return value of...

Laravel Array Helper Function: array_set

set(&$array, $key, $value) The set helper method is the logical opposite of the forget (discussed in the Laravel Array Helper Function: array_forget article) method. its purpose is to set values within an array. The set method also uses dot...

Specifying the Locale | Laravel 5: String Translation Public API

Like with many of the translator's public methods, we can specify the locale when calling the choice method via an argument to the $locale parameter. By default, Laravel will use the default configured locale when you invoke the choice method. We...

Laravel Artisan Generator Command: The make:model Command

The make:model command is used to generate new Eloquent model classes. It requires a name to be supplied; this name will become the name of the generated class and created file. A migration file can also be generated for the model by setting the...

Laravel Artisan General Command: The name Command

The app:name command can be used to set the application namespace. It accepts only one argument, the new name of the application namespace. In a new Laravel installation, the application namespace is set to App , as can be seen in the following...

Building a Simple Statamic Request Addon

In this tutorial we will look at building a really simple Statamic addon. The addon we will build will let us determine if the incoming web request to our site has a specific query parameter; this will allow us to have greater control in the way...

Default Filters | Basic Filtering

Meerkat applies some filters by default to account for the most common use cases when rendering your comment threads. These default filters automatically remove soft deleted comments, spam comments, and comments that have not been approved (or...