Showing 10 of 2,145 results.

Laravel Artisan Generator Command: The make:job Command

The make:job command is used to create a new job class. A name must be supplied that will be used as the name of the newly generated class and file. An optional --sync flag can be set to indicate that the created job should be synchronous....

Setting a Session Value | Laravel Helper Function: session

The session function allows setting session values directly by passing in an array of key/value pairs. The following example demonstrates this: 1 <?php 2 3 // Settings two session values 'test' and 'test'2 4 session ( [ 5 ' test ' => ' A test...

Paginated Groups | Responses and Replies

Meerkat 2 introduces the ability to create paginated groups of comments; this feature combines the pagination and grouping features to allow for incredibly customized and complex comment layouts. This feature is intended for advanced use cases; if...

Formatter Configuration and Usage

The Prettier Blade plugin supports many different configuration options. These options can be set my creating a new file at the root of your project (yes, another dot file, I'm sorry) called .blade.format.json . This file should exist at the root...

Laravel Array Helper Function: array_last

last($array, callable $callback = null, $default = null) The last helper method is the logical opposite of the first (discussed in the article Laravel Array Helper Function: array_first method. The difference is that the last function will return...

Configuring Folder Paths | Configuration Overview

By default, Social Media Image Kit will produce a nested folder structure for all generated assets. Folder names are generated using an Antlers template. This template can be changed by modifying the folder configuration value within the...

A Practical Use Case | Building a Simple Statamic Request Addon

So where would we use a tag like this? I personally like to use this on search pages to display a search form to the user if they navigate directly to the search results page without entering a search query (this technique has been implemented on...