Laravel - Artisan Console - Passing Boolean Values

If you need to specify the value of an option that does not accept string values, such as the --force flag on the migrate:refresh command, you should pass true or false as the value of the option:

    
    $exitCode = Artisan::call('migrate:refresh', [
        '--force' => true,
    ]);