Search

Showing 7 of 2,041 result(s)

/blog/2018/02/19/laravel-5-the-translators-file-loader

The FileLoader is the class that is responsible for loading the translation files from the file system. The language files are loaded from the /resources/lang/ directory by default. The lang/ directory contains the en (English from the ISO 639-1...

/blog/2018/04/22/laravel-5-collections-conditionally-executing-a-callback-on-a-collections-elements-with-when

The when method will execute the provided $callback on the collection if the provided boolean $value evaluates to true . A $default callback may also be supplied if the provided $value evaluates to false . Both of the provided callbacks will...

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3

Throughout this article we will create a fairly basic integration between Statamic 3 and the newly updated Laravel Spark . This guide will be using Spark's Stripe option, but if you want to use Paddle, the overall steps should not be too...

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-restricting-access-creating-an-antlers-tag

In this section, we will create a new Antlers tag that will check if the currently authenticated user (if there is one) has an active billing subscription. We can then use this tag in our site's template to restrict access to our content. From the...

/blog/2018/04/15/laravel-5-conditionally-transformingchanging-values-with-transform

The transform helper function is used to modify the provided value if the value contains a "non-empty" value. A value is considered to be "empty" or "blank" if it meets one of the following conditions: The value is, null, ,, The value is a string...

/blog/2018/04/22/laravel-5-collections-calculating-the-sum-of-a-collection-with-sum#content-using-sum-with-higher-order-messages

Higher order messages are a concept that allows you to invoke methods on objects within a collection using property accessors syntax. The following example will use the Laracon EU collection be built in the previous section. We will create a new...

/blog/2016/11/21/laravel-facades-part-one-an-introduction-to-facades

This article is part of a four part series all about Laravel facades. Each of the parts are listed below: Laravel Facades Part One: An Introduction to Facades, Laravel Facades Part Two: Using Facades, ., Laravel Facades Part Three: Creating Custom...