Showing 10 of 1,322 results.

Laravel MessageBag Public API: has

…-> add ( ' test ' , ' Example message ' ) ; 13 14 // true 15 $ hasMessage = $ messageBag -> has ( ' test ' ) ;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 Queue Command: The queue:table Command

…isan queue:table The migration will create a jobs table with the following properties: The queue: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...

Laravel MessageBag Public API: getMessageBag

…=== $ anotherMessageBag ) ; 7 8 // true 9 $ isEqual = ( $ messageBag === $ messageBag -> getMessageBag ( ) ) ;This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...

Laravel 5 String Helpers: Pluralization and Strings

…ural helper method will attempt to return a plural version of the given $value . It does this through a series of specialized internal functions, that will not be covered in great detail here. This helper method will apply general rules to...

Laravel Collection Public API: __toString

__toString() When a Collection instance is cast into a string, its JSON representation is returned as the result. Internally this is accomplished by returning the results of the collection's toJson (discussed in the Laravel Collection Public API:...

load($namespace, $group, $locale) | The Laravel Translator

The load method internally makes a call to the load method on the current instance of the Illuminate\Translation\LoaderInterface implementation, which by default is an instance of FileLoader . The Translator additionally keeps an internal cache of...

parseKey($key) | The Laravel Translator

…swords.php and the item refers to a particular key within the array returned by the file. The following code examples will show the return values of various calls to the parseKey method. The code samples will assume a $translator variable exists,...

setSelector(MessageSelector $selector) | The Laravel Translator

The setSelector method sets a Symfony\Component\Translation\MessageSelector instance ( $selector ) for the Translator . The MessageSelector instance is used by the choice and transChoice methods for loading the correct translation message based on...

Filter Search