Search

Showing 7 of 1,216 result(s)

/blog/2018/02/20/laravel-5-string-translation-public-api#content-working-with-translator-locales

The Laravel translator exposes a number of methods that can be used to determine what the current locale configuration is, as well as allow for configuration modification at runtime in response to application conditions. These methods are fairly...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-setting-the-fallback-locale-with-setfallback

The Laravel translator supports the concept of a fallback language, or a language that will be used if no translation lines can be found for the current locale. We can use the setFallback method to change this at runtime.

/blog/2018/04/14/laravel-5-redirecting-users-to-the-previous-page-with-back#content-supplying-additional-headers

In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers : The following image shows the results of a request that contains the request headers. You can see that the Laravel header is...

/blog/2018/04/21/laravel-5-facades#content-additional-storage-methods

The Storage facade defines a few extra helper methods, both are to help make testing filesystem components within your Laravel application easier. Both of these testing methods will replace the storage disk with a local storage disk; this means...

/blog/2018/04/22/laravel-5-collections-transforming-collection-elements-with-map#content-using-map-with-higher-order-messages

…ion about a product, and whether or not the product is on sale. Let's expand the Product class to implement the "Illuminate\Contracts\Arrayable" interface: app/Product.php : With the modified Product class, we can now use higher order messaging...

/blog/2014/07/28/part-two-creating-a-custom-pagination-view-in-laravel#content-creating-a-view-composer

To do this, let's create a view composer. From the Laravel doc's this is a view composer: View composers are callbacks or class methods that are called when a view is rendered. If you have data that you want bound to a given view each time that...

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

…ling subscription. The rules are: Anonymous users (not signed in) do not have a subscription, Statamic Super Users always have a subscription, Non-super users who have a valid subscription If you were curious, the subscribed helper method comes...