Showing 10 of 2,055 results.

Custom Component Tags

The document parser supports registering custom component tag prefixes. By default, the parser is configured to parse elements beginning with <x- , <x: , </x , or </x: as Blade component tags; this behavior cannot be changed. However, we can add...

Using Facades | Laravel 5 Facades

Laravel's facades are used just like any other static class, with the exception that facades are redirecting method calls to an actual class instance. Facades are typically imported at the top of the source file, along with any other classes that...

Facade Class Reference | Laravel 5 Facades

The following tables will list all the facades that are available by default. In addition, they will display the name of the service container binding as well as the class behind the facade. If a particular facade provides additional methods (that...

Xdebug and var_dump

If you are using Xdebug with PHP and are using the var_dump function it is important to note that Xdebug will limit var_dump 's depth when dumping information about a variable. By default this limit is 3 and can easily be identified by the...

Laravel Application Helper: abort_if

…unction will abort execution of the application. The following example assumes that some $user object exists with the property admin . The example will check to make sure that the admin property is true . If not, the code will abort with a 401...

Integrating Laravel Spark, Stripe, 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...