Laravel version update
Laravel version update
This commit is contained in:
@@ -19,9 +19,17 @@ class ClearCommand extends Command
|
||||
public function fire()
|
||||
{
|
||||
$this->debugbar->boot();
|
||||
|
||||
|
||||
if ($storage = $this->debugbar->getStorage()) {
|
||||
$storage->clear();
|
||||
try
|
||||
{
|
||||
$storage->clear();
|
||||
} catch(\InvalidArgumentException $e) {
|
||||
// hide InvalidArgumentException if storage location does not exist
|
||||
if(strpos($e->getMessage(), 'does not exist') === false) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
$this->info('Debugbar Storage cleared!');
|
||||
} else {
|
||||
$this->error('No Debugbar Storage found..');
|
||||
|
Reference in New Issue
Block a user