Showing 10 of 2,044 results.

getRootForElse | Workspaces

Returns the direct for-else blocks. This method automatically performs structural analysis. Only nodes that appear at the root of a document, without any parent nodes, will be returned. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5...

Laravel MessageBag Public API: __toString

When a MessageBag instance is cast into a string, its JSON representation is returned as the result. Internally this is accomplished by returning the result of the toJson method. 1 <?php 2 3 use Illuminate \ Support \ MessageBag ; 4 5 // Create a...

Laravel Artisan Command Input Syntax Reference

…test . Yes {test?*} Accept an optional array of input, and store it in the value test . No --test Define a boolean flag named --test . No --test | Description Adding a description to an option. No --T|test Define a boolean flag named --test with...

Project GitHub Settings

…eld is entirely informational, but can be used to customize your own templates., GitHub Edit Root, : If you'd like to have an "Edit on GitHub" link appear on your documentation's content pages, enter the URL where the GitHub file can be found....

The Hash Facade | Laravel's Bcrypt Hasher

…nate\Support\Facades\Hash facade, which provides access to whatever implementation is bound to the Illuminate\Contracts\Hashing\Hasher interface within the service container. Since the Hash facade resolves an implementation of Hasher , all Hasher...

Laravel URL Helper Function: secure_asset

secure_asset($path) The secure_asset function will return a URI composed of the application's URI and the given $path . It internally makes a call to the asset (discussed in the Laravel URL Helper Function: asset article) helper function and...

Description | Open Graph Metadata

The description method queues a <meta property="og:description" content="..."> tag. By default it binds to the $meta_description variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the...

Site Name | Open Graph Metadata

The siteName method queues a <meta name="site_name" property="og:site_name" content="..."> tag. By default it binds to the $meta_site_name variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting...

Meerkat Blueprint Adjustments | Guide: User-Only Comment Setup

…d to do is remove the user name and email fields from the Meerkat comment blueprint. This will simplify the comment submission process later since we will no longer have to worry about validation of these fields. Within the Statamic Control...