9 months ago

How to use Laravel Session?

Posted 9 months ago by hjortur17

Hi, I'm building a booking system in Vue, and I have a web payment on a other site. What I need to do is store my data in the session while the customer goes over to the other site and pay's and then he will be redirect to my site and then a from will be posted and store the booking.

I just can't figure out the best way to store the data in the session. I was thinking to use session key to send over to the payment site and when the customer is redirected I will match the key with the key on my site and post the form. Any good ways, to do this?

Here is my data in vue:

booking: {
                    carNumber: null,
                    carSize: "Bíltegund",
                    carMake: null,
                    carType: null,
                    carColor: null,

                    name: null,
                    socialId: null,
                    email: null,
                    phone: null,

                    dropOffDate: this.dropOffDate,
                    pickUpDate: this.pickUpDate,
                    dropOffTime: "Hvenær mættiru á Leifstöð",
                    pickUpTime: "Hvenær viltu sækja bílinn?",
                    flightNumber: null,

Please sign in or create an account to participate in this conversation.