Hi, i am not sure why you want to set a value for a variable in a view. You should rather use your controller to get the data and send the variable to the view to display the contents.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community