Separation of Concerns + old coude cleanup

This commit is contained in:
2021-07-20 00:35:03 +01:00
parent 9baa249ba7
commit 620453c1e4
17 changed files with 85 additions and 126 deletions

View File

@@ -45,9 +45,9 @@ class CommentController extends Controller
]);
if ($comment) {
$request->session()->flash('success', 'Comment posted! (:');
$request->session()->flash('success', __('Comment posted! (:'));
} else {
$request->session()->flash('error', 'Something went wrong while posting your comment!');
$request->session()->flash('error', __('Something went wrong while posting your comment!'));
}
return redirect()->back();
@@ -58,7 +58,7 @@ class CommentController extends Controller
$this->authorize('delete', $comment);
$comment->delete();
$request->session()->flash('success', 'Comment deleted!');
$request->session()->flash('success', __('Comment deleted!'));
return redirect()->back();
}