How can I write a command on two lines with Laravel Artisan Tinker ?
User::whereEmail('[email protected]')
->get()
PHP Parse error: Syntax error, unexpected T_OBJECT_OPERATOR on line 1
You can type edit, which launches an external editor and loads the generated code into the input buffer.
Use the \ character to force the REPL into multi-line input mode:
>>> User::whereEmail('[email protected]') \
... -> get()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With