#development #laravel #php

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!

 1class MyCommand extends Command
 2{
 3    public function handle()
 4    {
 5        // Instead of doing this
 6        return 1;
 7
 8        // Do one of these instead:
 9        return self::SUCCESS;
10        return self::FAILURE;
11        return self::INVALID;
12    }
13}