Laravel Command: Return error msg and exit code on 1-line
Hi guys,
A small tip for your weekend. For Laravel's devs out there.
Ever wonder how can I write the error and then stop the command immediately (with an error code) in 1 line?
Lemme show you how :v
Today our code looks like this:
public function han...
sethphat.dev1 min read