Closed
Description
When I execute the command 'php artisan debugbar:clear' I get an error, No Debugbar Storage found..
If I hardcode the class ClearCommand to set the storage manually it works perfect.
public function fire()
{
/* Added Code
$storage = new FilesystemStorage($this->debugbar->app['files'], storage_path() . '/debugbar');
$this->debugbar->setStorage($storage);
*/
if ($storage = $this->debugbar->getStorage()) {
$storage->clear();
$this->info('Debugbar Storage cleared!');
} else {
$this->error('No Debugbar Storage found..');
}
}
Thanks
Metadata
Metadata
Assignees
Labels
No labels