I am new to Programming and I am assigned to build a renting system. I'm using laravel and i'm having a hard time making a toast notification. I have no idea how can I call a toast(bootstrap) notification whenever the costumer successfully submitted a form.
here is my controller wherein the data is submitted successfully on the database.
public function store(Request $request){
$rentform = new BorrowerRequest;
$rentform->user_id = $request->user_id;
$rentform->car_id = $request->car_id;
$rentform->borrowers_name = $request->borrowers_name;
$rentform->email = $request->email;
$rentform->return_date = $request->return_date;
$rentform->contact_number = $request->contact_number;
$rentform->request_status_id = $request->request_status_id;
$rentform->save();
$request->session()->flash('message', 'Your Request has been successfully submitted, please wait for a couple of hours for the approval');
return redirect('/selections');
}
anyone can give me a hint on how i can make a condition where a toast notification will popup in admins account whenever a formrequest is submitted by the costumer?