Showing 10 of 2,145 results.

Entering Data | Laravel Artisan: Interacting With Commands

Most commands require some sort of input to process when the execute. The exact input that a command requires depends on the specifics of that command, but the way that input entered is consistent. As an example, let's take a look at the usage...

Laravel Artisan Key Command: The key:generate Command

The key:generate command is used to generate a random key. This command will update the key stored in the application's environment file. The command also supports an optional --show flag. Specifying this flag will simply show the generated key...

Laravel Helper Function: ASCII

The ascii helper method accepts only one argument: $value . $value should always be a string, or something that can be cast into a string. The function converts a string in the UTF-8 encoding into its ASCII equivalent. This function is useful when...

Using a Job Queue

Social Media Image Kit can be configured to process image rendering using a job queue. The typical setup for this scenario will involve having a database available, or some other asynchronous method of processing jobs. Before continuing, it is...

An Introduction to Laravel's Collection Public API

The Collection class exposes a generous public API, consisting of, at the time of this writing, 64 public methods. The Collection API exposes methods for retrieving values from a collection, transforming the underlying array, pagination and simple...

BillingContent | The Statamic Add-on Roundup

The BillingContent add-on acts as a content delivery API for a customized Laravel Spark installation. The Laravel Spark installation uses many of the same assets as the Statamic site; this API delivers content to the Spark application so that I do...

Laravel Helper Function: encrypt

encrypt($value) The encrypt helper function can be used to encrypt a given $value . The function resolves the configured Illuminate\Contracts\Encryption\Encrypter implementation from the Service Container and then calls the encrypt method on the...

findNodePattern | Querying Document Nodes

Locates all instances of the provided node pattern within the document. Pattern searches exclude instances of LiteralNode . Argument Description $pattern The desired pattern. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function...