1
0
Fork 0

app/Http/Controllers/Admin/*: Add flash message to destroy() redirect.

This commit is contained in:
Henrik Hautakoski 2022-01-09 11:49:50 +01:00
parent 64bfcc71e1
commit 058da68753
3 changed files with 6 additions and 3 deletions

View file

@ -23,6 +23,7 @@ class CharacterController extends Controller
{
$character->delete();
return redirect()->route('admin.character.index');
return redirect()->route('admin.character.index')
->with('info', __("Character #:id was deleted.", [ 'id' => $character->id ]));
}
}