mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
agnet allow deny clear cahce after delete + VIP above never demotion
This commit is contained in:
@@ -74,6 +74,11 @@ class AgentAllowResource extends Resource
|
||||
])
|
||||
->actions([
|
||||
Tables\Actions\EditAction::make(),
|
||||
Tables\Actions\DeleteAction::make()->using(function ($record) {
|
||||
$record->delete();
|
||||
clear_agent_allow_deny_cache();
|
||||
return redirect(self::getUrl());
|
||||
})
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
|
||||
Reference in New Issue
Block a user