Skip to content

Commit

Permalink
if currentEngine is EloquentEngine::class or its subclass, then exec …
Browse files Browse the repository at this point in the history
…cleanEloquent command.
  • Loading branch information
Remx committed Apr 11, 2023
1 parent ef134fb commit 690899a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/CleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function handle()
{
$currentEngine = config('visits.engine') ?? '';

if($currentEngine == EloquentEngine::class) {
if($currentEngine == EloquentEngine::class || is_subclass_of($currentEngine, EloquentEngine::class)) {
$this->cleanEloquent();
}
}
Expand Down

0 comments on commit 690899a

Please sign in to comment.