Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
tipuloidea
/
back
/
vendor
/
spatie
/
laravel-event-sourcing
/
src
/
Console
:
ClearCachedEventHandlersCommand.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Spatie\EventSourcing\Console; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; class ClearCachedEventHandlersCommand extends Command { protected $signature = 'event-sourcing:clear-event-handlers'; protected $description = 'Clear cached event handlers'; public function handle(Filesystem $files): void { $files->delete(config('event-sourcing.cache_path').'/event-handlers.php'); $this->info('Cached event handlers cleared!'); } }