Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
barryvdh
/
laravel-debugbar
/
src
/
Console
Location:
/home/zoteqbgb/public_html/vendor/barryvdh/laravel-debugbar/src/Console
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: ClearCommand.php
<?php namespace Barryvdh\Debugbar\Console; use DebugBar\DebugBar; use Illuminate\Console\Command; class ClearCommand extends Command { protected $name = 'debugbar:clear'; protected $description = 'Clear the Debugbar Storage'; protected $debugbar; public function __construct(DebugBar $debugbar) { $this->debugbar = $debugbar; parent::__construct(); } public function handle() { $this->debugbar->boot(); if ($storage = $this->debugbar->getStorage()) { 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..'); } } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
ClearCommand.php
996 bytes
0644
2025-02-25 20:25
âï¸
ðï¸
Rename
Chang
Apply