Showing 10 of 2,044 results.

Laravel 5: Accessing the Service Container With app

…ke app with the auth argument: 1 // $authManager will be an instance of 2 // Illuminate\Auth\AuthManager 3 $ authManager = app ( ' auth ' ) ; The previous example would be equivalent to resolving the Service Container itself and invoking the make...

Registering Metadata Tags | Overview

Metadata information is managed from your site's backend code, primarily by interacting with the Metadata facade, typically within your site's AppServiceProvider . The metadata manager utilizes a "builder" concept, allowing you to chain multiple...

Laravel 5: Triggering Events With event

…all its listeners will be called and any responses from the listener will be added to an array. The array of responses is generally the return value of the event function. The event helper function can also be used to dispatch object based events...

getAttributes() | Laravel Fluent Part Two: The Public API

The getAttributes method simply returns an array containing all key/value pairs, representing the underlying data contained within the Fluent instance. After the following code is executed: 1 <?php 2 3 $ fluent = new Fluent ( $ testObject ) ; 4 5...

Documentation Search | That Escalated Quickly: All the New Things

Documentation Search is a powerful search provider for Statamic. Documentation Search was developed with documentation-heavy websites in mind, and supports the following features: Split larger entries into smaller sections that can be indexed...

findDirectivesByName | Querying Document Nodes

Returns all directives with the provided name in the source document. Argument Description $name The directive name to search 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function findDirectivesByName ( 6 string $...

findComponentsByTagName | Querying Document Nodes

Finds all components with the provided tag name. This method will return all component tags that match the provided name, including closing tags. Argument Description $tagName The tag name to filter on. 1 <?php 2 3 use Stillat \ BladeParser \...

allNotOfType | Querying Document Nodes

…?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function allNotOfType ( 6 string $ type 7 ) : NodeCollection ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 use Stillat \ BladeParser \ Nodes...

Previous Link | General Metadata

The prev method queues a <link rel="prev" href="..."> tag. By default it binds to the $meta_link_prev variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6 Metadata ::...

Next Link | General Metadata

The next method queues a <link rel="next" href="..."> tag. By default it binds to the $meta_link_next variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6 Metadata ::...