Showing 10 of 1,280 results.

Laravel Miscellaneous Helper Function: tap

…od chaining. Another way to think of this functions behavior is that it allows you to specify and fix the return value of a series of method calls, regardless of what methods are called within the internal block. The tap helper function was added...

Laravel Artisan Tinker: The wtf Command

…at ...\vendor\psy\psysh\src\Psy\Shell.php:307 17 Psy\Shell->doRun() at ...\vendor\symfony\console\Application.php:117 18 Symfony\Component\Console\Application->run() at ...\vendor\psy\psysh\src\ 19 Psy\Shell.php:273 20 Psy\Shell->run() at...

Laravel Artisan: The Tinker Command

The ability to easily interactive with your application to experiment or debug issues is an incredibly important thing. To help with this, Laravel provides a tinker command out of the box. The tinker command uses the PsySH library to setup a REPL...

Laravel Helper Function: ASCII

…(such as HTTP) about how headers, or some values, need to be formatted. Example use: 1 use Illuminate \ Support \ Str ; 2 3 // The following will output "a test string" 4 // in the ASCII encoding. 5 6 echo Str :: ascii ( ' a test string ' ) ; As...

Laravel Artisan Generator Command: The make:command Command

…the name of the newly generated command class and file. An optional --command option can be supplied, which can be used to assign the terminal command name (as an example make:command is the terminal command name of the ConsoleMakeCommand class)....

Laravel Collection Public API: where

…item: the cucumber . This is because the cucumber's age is represented as an integer, and the value 2 was passed into the where method as an integer. If the value 2 was passed as a string the only value returned would have been the tundra wolf ....

Laravel 5.5 String Helper Function: ascii

…be used: 1 use Illuminate \ Support \ Str ; 2 3 // Outputs "sht" 4 echo Str :: ascii ( ' щ ' , ' bg ' ) ; The ascii method provides support for the following additional languages out of the box: Language Language Parameter Bulgarian bg German de...

Laravel 5 Collections: Filtering Collection Elements With where

…item: the cucumber . This is because the cucumber's age is represented as an integer, and the value 2 was passed into the where method as an integer. If the value 2 was passed as a string the only value returned would have been the tundra wolf ....

Laravel Artisan General Command: The name Command

The app:name command can be used to set the application namespace. It accepts only one argument, the new name of the application namespace. In a new Laravel installation, the application namespace is set to App , as can be seen in the following...

Laravel 5 Macros

Macros are a way to reduce the lines of code a developer has to write, and can be traditionally thought of as "shortcuts". Laravel generally uses macros to add, or inject, functionality into various classes at runtime. Developers familiar with C#...