Error in the controllers of my localized routes because it expects $locale as first variable in every functions
I am adding localization in my Laravel app.
Let’s say I have the routes slots
and slots/{id}
. My problem is, when I try to go to slots/{id}
page, the controller that handles this route expects $locale
as the first variable of the function.