Showing 10 of 1,322 results.

Array Options | Alternatives to Laravel Artisan Command Signatures

The signature that will be implemented using the getOptions method is: 1 test:command {--optionName=*} The corresponding getOptions implementation would be: 1 <?php 2 3 use Symfony \ Component \ Console \ Input \ InputOption ; 4 5 // Beginning of...

Step 1: The Presenter | Semantic UI Paginator for Laravel 4

…d. Basically, what the methods are going to do is take some pieces of data, such as the URL, page number, active status, etc, and return a piece of HTML with some CSS classes. The first methods we are going to write are the getActivePageWrapper ,...

Laravel String Helper Function: studly_case

Studly caps is a way of formatting text with capital letters, according to some pattern. Laravel's pattern is to remove the following word separators and capitalize the first letter of each word it finds (while not affecting the case of any other...

4. Conveying Verbatim Copies. | License

You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License...

Laravel Artisan Generator Command: The make:listener Command

…mand; this value will be the name of the newly generated class. The command also defines one required option: event . The event option is used to specify which event class the listener is being generated for. A queued flag can also be specified...

Laravel MessageBag Public API: toJson

…lace 512 with the desired depth. 9 $ jsonValue = json_encode ( $ messageBag -> jsonSerialize ( ) , 0 , 512 ) ;This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...