Showing 10 of 1,204 results.

Laravel String Helper Functions

String operations in PHP often seem complicated to developers coming to the language from other language, specifically languages that have a robust object-oriented approach to the provided data types. Operations such as checking if a particular...

Laravel 5: Reporting Application Exceptions With report

…ded exception.The signature of the report function is: 1 function report ( 2 $ exception 3 ) ;The following example demonstrates how to report an exception to the application's exception handler using the report helper function: 1 try { 2 //...

Implementing Laravel Artisan Console Commands

…15 16 /** 17 * The console command description. 18 * 19 * @var string 20 */ 21 protected $ description = ' Command description ' ; 22 23 /** 24 * Create a new command instance. 25 * 26 * @return void 27 */ 28 public function __construct ( ) 29 {...

Laravel Artisan Cache Command: The cache:clear Command

The cache:clear command can be used to clear the applications cache files. The command defines an optional store parameter which can be used to change which cache store is cleared. By default the store parameter will be set to whatever value is...

Laravel 5.5 String Helper Function: before

The before method can be used to return a part of a string before the first occurrence of a $search character. This method can be used to help parse URL query strings, or to quickly find substrings based on a certain character; it is the logical...

Creating Negative Ranges | Laravel 5: String Pluralization Syntax

…en one and three 4 Between four and six 6 Between four and six 7 Seven and beyond! 823 Seven and beyond! You may also notice that we placed or negative range at the end of the translation line; this is due to the way the MessageSelector handles...

Filter Search