It can be confusing when the return value is 0 or 1, instead you can use the constants from /vendor/symfony/console/Command/Command.php:
public const SUCCESS = 0;
public const FAILURE = 1;
public const INVALID = 2;
Example:
return Command::SUCCESS;
return Command::FAILURE;
return Command::INVALID;
Categorieën
Laravel