Showing 10 of 2,133 results.

canceled Event Method | Advanced Reply Forms

The canceled() method is called after a visitor has clicked the "Cancel Reply" link on your site. Meerkat will supply the ID of the comment that the visitor was replying to as well as an instance of the comment form: 1 MeerkatReply . canceled =...

Laravel: Implementing a CRYPT_STD_DES Hasher

In this article we will create an implementation of Illuminate\Contracts\Hashing\Hasher using PHP s crypt function and the CRYPT_STD_DES hashing function. Before we write the code for the CRYPT_STD_DES implementation, we will examine each method...

Laravel MessageBag Public API: getMessageBag

The getMessageBag method returns a reference to the MessageBag instance. It exists to satisfy the requirements of the Illuminate\Contracts\Support\MessageProvider interface. 1 <?php 2 3 use Illuminate \ Support \ MessageBag ; 4 5 // false 6 $...

getLocale() | The Laravel Translator

The getLocale method is used to retrieve the current locale being used by the translator. The method is required by Symfony's TranslatorInterface . 1 <?php 2 3 // Get a `Translator` instance from the application container. 4 $ translator = app ( '...

Semantic UI Paginator for Laravel 4

So its been quite a while since I've written a blog post. I've been busy. With lots of things. One of those things has been playing around with Semantic UI, a web design framework in the same spirit as Bootstrap and Foundation. Semantic UI is...

Generate Images | Artisan Commands

The generate-images Artisan command may be used to generate images for all configured collections. It can be invoked by running the following command from the root of your project: 1 php artisan social-media-image-kit:generate-images This command...

getRootStructures | Workspaces

Returns the direct workspace structures. This method automatically performs structural analysis. Only structures that are at the root of a document, without any parent node, will be returned. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5...

getRootSwitchStatements | Workspaces

Returns all the direct switch statements. This method automatically performs structural analysis. Only @switch statements that appear at the root of a document, without any parent nodes, will be returned. 1 <?php 2 3 use Illuminate \ Support \...

getRootForElse | Workspaces

Returns the direct for-else blocks. This method automatically performs structural analysis. Only nodes that appear at the root of a document, without any parent nodes, will be returned. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5...