Accessing firewall on the interface Illuminate\Contracts\Foundation\Application suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
34
$this->info('List cleared.');
35
} else {
36
$this->info('There were no IP addresses to be deleted.');
37
}
38
}
39
}
40
41
/**
42
* Get the console command options.
43
*
44
* @return array
45
*/
46
protected function getOptions()
47
{
48
return [
49
['force', null, InputOption::VALUE_NONE, 'Remove IP before adding it to the list.'],