Showing 10 of 2,055 results.

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

Setup & Configuration

Search Report for Statamic stores search logs within a database, even if the rest of your site is using flat files. If you don't want to setup a large database server, you may also use SQLite. For more information on how to configure a database...

Laravel Array Helper Functions

…ray would produce the following output: 1 array ( 2 ) { 2 [ " fruit " ] " orange " 3 [ " vegetable " ] " carrot " 4 } This is because Laravel's functions do not affect the original array (unless stated otherwise). Running var_dump on...

Template and Partial Names and Descriptions | Template IDE Hints

To provide a name, or description, for your partial, you must include an Antlers comment as the first item in your Antlers template. Within this comment you can prefix a line with @name to specify the partial name, and another line with @desc to...

Laravel Artisan Migration Command: The migrate:status Command

…entry. Assumes the value of the of the DB_CONNECTION environment variable, or mysql if no value has been set. --path=PATH The path to the migrations file. The default migrations directory is database/migrations/ . The following example...

Document Structures

While there are many Blade directive "pairs," such as the conditions, stacks, and related, Blade is inherently a structureless templating language. However, the Blade Parser library can make sense of structures within a Blade template to help tool...

Laravel 5: Recover From Possible Exceptions With rescue

…$rescue parameter that will be returned if the operation fails. The rescue helper function will log invoke the report helper function on the inner exception if the operation fails.The signature of the rescue function is: 1 function rescue ( 2...

Extending Laravel's Paginator | Laravel Paginator Pretty URLs

The class we want to extend is Illuminate\Paginator\Paginator . It has a function named getUrl($page) ; this is responsible for creating the URLs that the paginator uses when rendering the HTML links. Because of this fact, we should figure out a...

Configurable Settings | Formatting

Most Visual Studio Code formatting settings will apply to the Antlers formatter. For a complete list of all HTML formatting options provided by Visual Studio Code check out their documentation at...

Laravel Router Helper Function: get

get($uri, $action) The get function is a shortcut to registering a route with the router that responds to the GET HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the route...