Showing 10 of 1,322 results.

all | The Laravel Framework Console Kernel

…ands that have been registered with the console application. The commands will be returned as an array with the command name as the key and the command's class instance as the value. This method will bootstrap the application as well as force the...

I'm Getting The Wrong Data? | Laravel 4: Getting User Input

So we know how to get the input from the user, but how do we handle the occasional situation where we have ambiguous input? For example say we have a form field named name set to John Doe for a user's name using a POST request. In addition we also...

Laravel Miscellaneous Helper Function: trait_uses_recursive

…) { 2 [ " TraitTwo " ] " TraitTwo " 3 [ " TraitThree " ] " TraitThree " 4 [ " TraitOne " ] " TraitOne " 5 } It should be noted that TraitFour used by ExampleClass 's base class is not listed. The trait_uses_recursive only lists the traits in the...

Laravel MessageBag Public API: count

…ion = new Collection ( [ 7 ' first ' , ' second ' , ' third ' 8 ] ) ; 9 10 // 3 11 $ collection -> count ( ) ;This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...

Laravel Artisan Session Table: The session:table Command

…ion:table The migration will create a sessions table with the following properties: The sessions:table command will allow itself to be run multiple times. This results in multiple migrations being generated. Be sure to change the table name of...