Entering Multi-Line Code Statements | Laravel Artisan: The Tinker Command
…to enter arbitrary code that spans multiple lines. However, by default, pressing the Enter key will cause the Tinker REPL to read and evaluate the line that was entered. To get around this, end the first line with the \ character. This allow you...