More refactoring

Refactored some old code and added missing translation calls.
This commit is contained in:
2021-07-20 10:32:43 +01:00
parent 620453c1e4
commit 6cda1fe183
7 changed files with 61 additions and 134 deletions

View File

@@ -29,10 +29,6 @@ use Illuminate\Support\Facades\Auth;
class CommentController extends Controller
{
public function index()
{
//
}
public function insert(NewCommentRequest $request, Application $application)
{
@@ -45,7 +41,7 @@ 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!'));
}