lundi 6 janvier 2020

Toast Notification in Laravela

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 succesfully 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? thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire