Skip to content

Commit ed041ec

Browse files
authored
Do not show as errror
1 parent f81fb02 commit ed041ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Commands/CacheReset.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ class CacheReset extends Command
1313

1414
public function handle()
1515
{
16-
if (app(PermissionRegistrar::class)->forgetCachedPermissions()) {
17-
$this->info('Permission cache flushed.');
18-
} else {
19-
$this->error('Unable to flush cache.');
20-
}
16+
app(PermissionRegistrar::class)->forgetCachedPermissions();
17+
18+
$this->info('Permission cache flushed successfully.');
2119
}
2220
}

0 commit comments

Comments
 (0)