Signature | Laravel 5 Collections: Filtering Collections With (Without Losing Filtered Rejections) partition
1 public function partition ( 2 $ callback 3 ) ;
Showing 10 of 2,055 results.
1 public function partition ( 2 $ callback 3 ) ;
The setLocale method is used to set the locale that the translator should use. It accepts only one parameter $locale , which is the locale that should be set. By default, it is set to the value defined for locale in the app.php configuration file.
The config:clear command is used to remove the configuration cache file created by the config:cache command. By default this command will delete the bootstrap/cache/config.php file. The following example shows how to call the config:clear command:...
I've recently been working on consolidating a number of websites. A common task when doing so is ensuring that all existing paths on separate domains are correctly redirecting to their new home. There are dedicated services that can handle these...
merge($messages) The merge method is used to combine, or merge , the contents of the MessageBag instance with the provided $messages . The $messages can be any valid array or an object instance that implements the...
The various methods that the event classes expose can be combined to specify more complicated scheduling intervals. The following tables lists each of these methods and a description of what they do (these methods are exposed via the...
Retrieves the first fatal error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. Fatal errors are considered those that would produce invalid compiled PHP code,...
…runs in the context of the web browser (so we can use the console features, and what not. But it doesn't have to). When this code is ran, it will write "Hello, world!" to the console. But we didn't explicitly call a function here. This a function...
The following table will show more examples of handling specific numbers when dealing with pluralization translation. The table will use the following translation message definition: 1 {0} There are no books! 2 |{1,2,3} You have one, two or three...
The with function can be used to simply return the supplied $value . This function can be used to invoke methods on new class instances that are passed as function arguments: 1 <?php 2 3 class ExampleClass { 4 5 public function someMethod ( ) 6 {...