Yes, what you need here is to go through the middleware and how it works. And then, actually you don't need to store username in a hidden text field. This will be obtained from Auth::user();.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community