return redirect()->back()->with('success','Added Successfully Done');
toastr.error toastr.info toastr.warning toastr.clear toastr.options = { "closeButton": false, "debug": false, "newestOnTop": false, "progressBar": true, "positionClass": "toast-top-right", "preventDuplicates": true, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } public function index() { session()->put('success','Item Successfully Created.'); return view('toastrCheck'); } toastr.success("{{ Session::get('success') }}"); composer require brian2694/laravel-toastr
{!! Toastr::message() !!} Command: toastr["success"]("Thank You", "Success") toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": true, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" }