Support the ongoing development of Laravel.io →
Input Session Forms

Hey there.

I am currently busy with a application that should work like this:

We have several students that want to take extra classes of a certain subject. So I made a view with 11 subjects they can take. Vary from History, Biology, Geography, etc they can choose what they like. So after choosing a few subjects, I want to take them to the first subject they choose, after that the second, third etc. (they choose the subjects by checkboxes)

I know I have to be working with a cookie if the student is not logged in. And a session if the student needs to login. So, I chose for a login page ofcourse. How do I get the views viewed (in order) that the student has chosen? Do I put it in a controller? Do I use Input? Or set functions in the routes.php file? I would like to have some like this:

If checkboxvalue='checked'=>'subject' { then show View('subject'); } It's almost like a multi-part survey, where following views depend greatly on what you selected in the view before it

How to make that in Laravel? Thanks in advance for any tips/advice/link. I really need some help with this

Last updated 3 years ago.
0

Awesome! Yes, I was planning to save the choices into a MySQL database, by using Models. I' m gonna try it out right now! Thanks for the example.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

cezdev cezdev Joined 18 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.