Showing 10 of 2,142 results.

Laravel MessageBag Public API: add

add($key, $message) The add method adds a new message to the MessageBag instance. The message is identified by a given $key and contains the value $message . The add method returns a reference to the current MessageBag instance. The following code...

Front-end Templates

The required meta tags can be added to your front-end Antlers templates in a few different ways. The simplest method is to use the provided {{ get_social_media_images /}} tag: 1 <! doctype html > 2 < html > 3 < head > 4 {{ get_social_media_images...

Example Use | Laravel 5: Retrieving Nested Array Values With pluck

Let's use the following class to describe a person: 1 class Person { 2 3 public $ firstName = ' ' ; 4 5 public $ lastName = ' ' ; 6 7 public function __construct ( $ firstName , $ lastName ) 8 { 9 $ this -> firstName = $ firstName ; 10 $ this ->...

Read the Docs | Rebuilding Stillat.com

"Read the docs". This is something you see in many, many, many places online, especially in the open-source scene. But its true: read the docs and life will become much easier. After mocking up a design, the process of converting that into a basic...

Example Use | Laravel 5: String Translation Public API

The following example demonstrates how to use the addLines method to add lines to the existing translator instance. We need to supply it a locale, but we will explore methods to do this dynamically based on the currently configured default locale....