Showing 10 of 1,322 results.

Ambiguous Character Sequences | Core Concepts

The first difference is in how the parser parses structures, such as a simple echo containing ambiguous characters: 1 {{ ' hello {{ world }} ' }} The previous example results in the following compiled output: 1 <?php 2 3 // Laravel Compiler Output...

Example Use | Laravel 5 String Helpers: Pluralization and Strings

…12 // people 13 echo Str :: plural ( ' person ' ) ; Assuming the following messages array: 1 // The user's messages. 2 $ messages = [ 3 ' You have a meeting on Saturday. ' , 4 ' Your inbox is 90% full ' , 5 ' Do not eat yellow snow ' 6 ] ; We...

getFallback() | The Laravel Translator

The getFallback() method is used to return the fallback locale that the translator is currently using. A fallback locale is used when a translation for a different locale cannot be found. 1 <?php 2 3 // Get a `Translator` instance from the...

GNU GENERAL PUBLIC LICENSE | License

Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. < https://fsf.org/ > Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Laravel Collection Public API: reduce

…lection ; 4 5 // Create a new collection instance. 6 $ collection = new Collection ( [ 7 1 , 2 , 3 , 4 , 5 8 ] ) ; 9 10 // 15 11 $ sum = $ collection -> reduce ( function ( $ carry , $ item ) { 12 return $ carry + $ item ; 13 } ) ; 14 15 // -15...

Laravel String Helper Function: camel

Camel casing is similar to studly case such that each word starts with a capitalized letter, with the difference being the first character is lower cased. Like the studly method, the camel method will not affect the casing of the rest of the word....

Generating Favicons

…efaultSite ( ) ; 18 19 if ( ! $ settings ) { 20 return null ; 21 } 22 23 $ favicon = $ settings [ ' favicon ' ] ; 24 25 if ( ! $ favicon ) { 26 return null ; 27 } 28 29 $ assetContainer = $ favicon -> container ( ) ; 30 31 return $ assetContainer...

Laravel Artisan General Command: The clear-compiled Command

The clear-compiled command is used to clear the compiled classes and services application cache. These two files are located in the bootstrap/cache/ directory. The compiled classes cache is stored in a file named compiled.php and the services...

Filter Search