Showing 10 of 2,133 results.

Laravel Artisan General Command: The serve Command

The serve command is used to run the application using the PHP development server. This command is generally used for development and testing purposes. The serve command accepts two optional options: host can be used to change the address of the...

setThrowExceptionOnUnknownComponentClass | Blade Compiler

Sets whether the compiler will fail when it encounters unknown component classes. Argument Description $doThrow Whether to throw on unknown component classes. 1 <?php 2 3 public function setThrowExceptionOnUnknownComponentClass ( 4 bool $ doThrow...

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