We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
When writing Laravel console commands, there are some constants available for return values in the base Symfony command. They make it much easier to see what's happening!
class MyCommand extends Command
{
public function handle()
{
// Instead of doing this
return 1;
// Do one of these instead:
return self::SUCCESS;
return self::FAILURE;
return self::INVALID;
}
}
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.