Category : message

I have this functions in my controller public function destroy($id) { $this->meoRepository->deleteDigestReport($id); return response()->json(["message" => __(‘digestReport.delete.success’)]); } public function sendTest($id){ $this->digestReportService->sendTest($id); return redirect()->route(‘digest-report.show’, $id) ->with(["message" => __(‘digestReport.send.test’)]); } public function startStop($id){ $this->meoRepository->startStopMeo($id); if (MeoState::NOT_SENDING_REPORT){ return redirect()->route(‘digest-report.index’) ->with(["message" => __(‘digestReport.startStop.stopped’)]); } else { return redirect()->route(‘digest-report.index’) ->with(["message" => __(‘digestReport.startStop.started’)]); } } none of the 3 generates response ..

Read more

What I want: I want to display a message when the user is redirected back to the form page after a mail is sent. What I am doing Here is the code in my SendEmailController.php: return back()->with(‘success’, ‘Mail Sent !’); Here is my code in my view/index.blade.php: @if ($message = Session::get(‘success’)) <div class="alert alert-success alert-block"> ..

Read more