Showing 10 of 2,133 results.

Laravel MessageBag Public API: setFormat

…15 $ format = $ messageBag -> getFormat ( ) ; 16 17 // Reset the format. 18 $ messageBag -> setFormat ( ) ; 19 20 // :message 21 $ format = $ messageBag -> getFormat ( ) ;This article is the start of a mini-series about Laravel's ErrorMessageBag...

Example Use | Laravel 5: String Translation Public API

In the following example, we will change the translator's default locale to es : 1 // Ask the Service Container for a translator instance. 2 $ translator = app ( ' translator ' ) ; 3 4 // Change the default locale to `es`. 5 $ translator ->...

Format Command | Formatting CLI

The CLI utility currently only offers a format command. The format command accepts the following options: Option Flag Description file --f The path to the template to format. dir --d output --out An optional file path where the formatted results...

Laravel ViewErrorBag Public API: getBags

The getBags method is used to return an associative array containing all the MessageBag instances that are currently stored within the ViewErrorBag instance. 1 <?php 2 3 use Illuminate \ Support \ ViewErrorBag ; 4 use Illuminate \ Support \...