Skip to content

No Debugbar Storage found.. when php artisan debugbar:clear #247

Closed
@sergiodebcn

Description

@sergiodebcn

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions