Showing 10 of 1,322 results.

Laravel Application Helper: public_path

public_path($path = '') The public_path will return the path to the public directory. It can also be used to construct paths relative to the public directory if a $path is supplied. The following examples will assume that the Laravel application...

Registering Third-party Metadata Providers | Overview

…ential's metadata manager. Metadata providers are added by using the addProviders method on the Metadata facade: 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 Metadata :: addProviders ( [ 6 \ Stillat \...

getPhpBlocks | Querying Document Nodes

Returns all Blade php/endphp blocks within the document. Retrieves all raw PHP blocks within the source document that were created using Blade's @php / @endphp directives. Raw @php directives that contain arguments will not be converted to...

getVerbatimBlocks | Querying Document Nodes

Returns all verbatim blocks within the document. Returns all valid @verbatim / @endverbatim regions within the source document. Unpaired verbatim directives that could not be converted into a valid VerbatimNode instance will either become part of...

Laravel Artisan Tinker: The migrate Command

The migrate command is used to run migrations against the database. It provides many different options and flags (six in total). The following table lists and explains each of these options and flags. Option/Flag Description Default Value...

Laravel 5.5 String 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 method is useful when...

An Introduction to Laravel's Artisan Console

…example, the clear command under the view namespace would clear the previously cached views and is written as view:clear .This section will provide a reference for the commands that are used to create and manage database tables. Each command will...

Overview | Responses and Replies

The {{ meerkat:responses }} tag is your window into the comment data stored for each of your site's pages. This tag and data structure has a lot in common with Statamic's collection tag, but they should not be used interchangeably when displaying...