Showing 10 of 1,280 results.

Laravel Helper Function: info

info($message, $context = []) The info helper will write an information entry into Laravel's log files. It allows a $message to be set, as well as an optional $context (which is an array of data). While the $context must be an array, the actual...

Laravel String Helper Function: substr

…ny characters are allowed in the returned substring). If $length is null , the substring will continue on to the end of the string.PHP's mb_substr function allows you to change the encoding that is used when extracting the substring from the...

Laravel Helper Function: logger

…ll return an implementation of Illuminate\Contracts\Logging\Log , which by default is an instance of \Illuminate\Log\Writer class. When the logger function is not being used to retrieve a Log instance, a $message can be set and it will be written...

Laravel 5 Macros: Injecting Class-Based Macros With mixin

…class instance as its first and only argument.The signature of the mixin method is: 1 public static function mixin ( 2 $ mixin 3 ) ;In the following example, we will define a new string mixin class StringEncryptionMixins that will provide access...

Laravel Artisan Tinker: The doc Command

The doc command can be used to view the documentation for an object, class, constant, method, function or property. It can accept either the function, method, class, etc name or a reference to an instance's methods as its arguments. Because of...

Getting Kint to Work With Laravel 4.1

…icely. Using Kint, you can look at a well organized representation of your arrays, objects, error messages and exceptions. Anything that var_dump() accepts, really. Here is a shot of it displaying the $_SERVER array: While Kint is not really part...