Showing 7 of 1,697 result(s)
The parser, and other related systems, are capable of reporting various errors under certain circumstances. For instance, the document parser will create errors if a @verbatim directive is not paired correctly with an @endverbatim directive....
Some commands accept multiple pieces of information to be stored in the same input argument; array parameters are defined as the last parameter in a commands signature so that there is no ambiguity between array data and other input parameters....
…e information for make:model Artisan command (obtained by executing the php artisan make:model -h command): As we can see the command expects the name of the new model class; this is displayed in angle brackets. The name of the command and the...
By default, the get method will look for the translation lines using the locale specified as the default with the translation service. However, we can specify a locale by supplying an argument for the $locale parameter. For the following example,...
…ions for those terms that are only slightly different from each other. A good example of terms like this are procedure , function , method and the anonymous function . With the exception of the anonymous function all of these terms are, for the...
tap($value, $callback) The tap helper function is used to call a given Closure (provided as an argument to the $callback parameter) with the given $value . The tap helper function will return the reference to the original $value as its return...
For the next example, we will create a new file at resources/lang/es.json to both showcase literal based language files as well as how the $locale parameter can be used. Note: with JSON based language files, there is only one file per locale...