Search

Showing 7 of 1,697 result(s)

/blog/2016/11/18/laravel-array-helper-function-array_collapse

The collapse helper method accepts an array as its only parameter. The given $array can be a single array, or a nested array. The method will then return a new array with the contents of all the nested arrays. Arrays that are collapsed can contain...

/blog/2016/11/20/laravel-application-helper-function-redirect

redirect($to = null, $status = 302, $headers = [], $secure = null) The redirect helper function is a versatile helper function. The $to parameter is defined with a default value of null . When $to is null , the redirect function by default will...

/blog/2016/11/29/laravel-viewerrorbag-public-api-getbags

…ay containing all the MessageBag instances that are currently stored within the ViewErrorBag instance. After the above code has executed, the $messageBags variable would be an array and contain a value similar to the following output:This article...

/blog/2016/11/30/the-laravel-translator#content-addnamespacenamespace-hint

The Translator class exposes the addNamespace method as part of its public API. The addNamespace internally makes a call to the addNamespace method on the current instance of the Illuminate\Translation\LoaderInterface implementation, which by...

/blog/2016/12/01/alternatives-to-laravel-artisan-command-signatures#content-array-options

…ptions method is: test:command {--optionName=*} The corresponding getOptions implementation would be: In the above example two option mode values have been combined. If you were to specify just the InputOption::VALUE_IS_ARRAY option an error...

/blog/2016/12/01/laravel-artisan-command-input-and-command-signatures#content-array-options

Lists of data can also be collected from the user using command options. The syntax is similar to defining command parameter arrays, the only difference is that the double hyphen ( -- ) option prefix is required as well as the addition of an...

/blog/2016/12/07/laravel-artisan-generator-command-the-makeevent-command

The make:event command is used to generate a new event class. The command requires a name parameter to be supplied, which will be the name of the new class. The generated classes by default will extend the App\Events\Event class (the actual...