From 62353d0af584d50df16371cc23012b0cdc1567ca Mon Sep 17 00:00:00 2001 From: Scott Carpenter Date: Thu, 8 Oct 2020 13:21:28 -0600 Subject: [PATCH 1/2] Add `newLine()` method to Artisan Console docs --- artisan.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/artisan.md b/artisan.md index 0e8969e614..edf7d99969 100644 --- a/artisan.md +++ b/artisan.md @@ -393,6 +393,12 @@ If you would like to display plain, uncolored console output, use the `line` met $this->line('Display this on the screen'); +To display a blank line, use the `newLine` method: + + $this->newLine(); + +You may optionally pass an integer to `newLine` to specify how many blank lines you would like to display. + #### Table Layouts The `table` method makes it easy to correctly format multiple rows / columns of data. Just pass in the headers and rows to the method. The width and height will be dynamically calculated based on the given data: From 34b5dfe5a4d6786e2e5531583eec3937d847571a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 9 Oct 2020 16:04:56 -0500 Subject: [PATCH 2/2] Update artisan.md --- artisan.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artisan.md b/artisan.md index edf7d99969..d284b552df 100644 --- a/artisan.md +++ b/artisan.md @@ -393,11 +393,12 @@ If you would like to display plain, uncolored console output, use the `line` met $this->line('Display this on the screen'); -To display a blank line, use the `newLine` method: +You may use the `newLine` method to display a blank line: $this->newLine(); -You may optionally pass an integer to `newLine` to specify how many blank lines you would like to display. + // Write three blank lines... + $this->newLine(3); #### Table Layouts