Showing 10 of 2,133 results.

Creating Simple HTTP Redirect Routes from a Statamic Site

I've recently been working on consolidating a number of websites. A common task when doing so is ensuring that all existing paths on separate domains are correctly redirecting to their new home. There are dedicated services that can handle these...

Working With Dynamic Variables in Antlers Runtime

In this article we will be looking at different ways to manage dynamic variable names within Antlers Runtime. This is a technique that comes up every now and then, and most often within the context of fetching dynamic alt text for images based on...

Example Use | Laravel 5.5 String Helper Function: studly

Let's take a look at a few examples to see how this would format a few example strings. The string returned will appear above the function call as a comment. In fact, all of the function calls below will return the string MyWords : 1 use...

setCompilesComponentTags | Blade Compiler

Sets whether to compile class component tags. Argument Description $compilesComponentTags Whether to compile component tags. 1 <?php 2 3 use Stillat \ BladeParser \ Compiler \ Compiler ; 4 5 public function setCompilesComponentTags ( 6 bool $...

Laravel Artisan Tinker: The throw-up Command

The throw-up command can be used to re-throw an exception out of a Tinker REPL session. By default, it throws the exception that last occurred, but will accept an exception instance as an argument: 1 >>> throw new Exception("An example...