Showing 10 of 2,044 results.

getErrors | The Document Parser

Retrieves a collection of parser errors. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function getErrors ( ) : Collection ;

Laravel 5: Ensuring a Value is an Array With wrap

…ode like the following: 1 function checkDomains ( $ domains ) { 2 if ( ! is_array ( $ domains ) ) { 3 $ domains = ( array ) $ domains ; 4 } 5 6 foreach ( $ domains as $ domain ) { 7 // Perform some operation on the domains array. 8 } 9 } The wrap...

Laravel 5: Generating HTTPS URLs With secure_url

…r the $parameters parameter. The secure_url helper function internally returns the value of a call to the url helper function.The signature of the secure_url function is: 1 function secure_url ( 2 $ url , 3 $ parameters = [ ] 4 ) ;The following...

Laravel Artisan Command Input and Command Signatures

…he terminal name, any number of parameters or options can be defined as long as they are enclosed within curly braces ( { and } ). When defining options within the signature, options must still start with the -- option prefix (options can also...

Adding Custom Metadata | Custom Metadata Tags

The most common place to queue custom metadata is within the site's app/Providers/AppServiceProvider.php file using the Metadata facade. To add a new <meta ...> tag, we can use the queue method and supply an array containing the attributes we want...

Adding Custom Metadata from Templates | Custom Metadata Tags

We can easily add custom metadata from our front-end templates using the se_meta:append tag. For example, on a search page we might add the following: 1 {{ se_meta : append }} 2 < meta name = " robots " content = " noindex " > 3 {{ /se_meta :...

Registering Third-party Metadata Providers | Overview

…tadata manager also supports the concept of "metadata providers." These providers provide a simple way for external code to register multiple meta tags with Site Essential's metadata manager. Metadata providers are added by using the addProviders...

Front-end Templating | Overview

In order for meta and link tags to appear in the output of your templates, you will need to use the se_meta Antlers tag. You should remove all hardcoded meta/link tags that you will be managing using the metadata builders so duplicates do not...