This part of the tutorial imagines that your page is showing the location of a user’s event that they are creating. You have to substitute the name of the model containing the user’s previous choice. My example imagined that you were setting the location of an Event. Your use will be different and must be adapted accordingly.
Hi, this greate post, can you make link download source code for only this article?
it can’t be more than 30 lines of code, which you can copy straight from the window
I am getting ErrorException
Undefined variable: event (View: resources\views\dropdowns.blade.php)
From where this $event variable came?
This part of the tutorial imagines that your page is showing the location of a user’s event that they are creating. You have to substitute the name of the model containing the user’s previous choice. My example imagined that you were setting the location of an Event. Your use will be different and must be adapted accordingly.
So here we need one event listener that can listen to change of user’s choice?
No. Not that type of event. A real event, in the real world. Taking place at a venue, in a city, in a country.