Showing 10 of 1,204 results.

Writing Custom Laravel Artisan Commands: An Introduction

…otle 7 He who is contented is rich. - Laozi 8 Very little is needed to make a happy life. - Marcus Antoninus These quotes are stored in the vendor/laravel/framework/src/Illuminate/Foundation/Inspiring.php class. The Inspire example commands ships...

Laravel Collection Public API: last

…ty (having no items), the last method will return null : 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create an empty collection. 6 $ collection = new Collection ( [ ] ) ; 7 8 // null 9 $ value = $ collection -> last ( ) ; The...

Laravel Collection Public API: sum

sum($callback = null) The sum is a simple method that returns the sum of all items in a collection. It also defines a $callback parameter which can be used to tell the sum method which values of the collection should be added together. If no items...

Laravel Task Scheduling: Managing Task Output

…. If $append is set to true , the output will be appended at the end of the file. appendOutputTo($location) Send the task output to the given file location. This is a helper method that calls sendOutputTo with a value of true supplied to the...

E-mailing Output | Laravel Task Scheduling: Managing Task Output

…output to have been previously saved to a file location using either the sendOutputTo or sendWrittenOutputTo methods. The emailOutputTo method accepts either a single E-mail address, or an array of E-mail addresses as the argument for the...

Filter Search