Hi, I got an error with this code, because Laravel on the RouteServiceProvider, while reading web.php to get our Route, it has already set up the namespace for us.
Hey guys, 15-year developer! I code with Vue.js and Python, I love to learn but also love to teach! So I try and write informative tutorials and posts. I am new to blogging and would love any feedback
Great article Graham,
there is room for improvement in your code. So instead of
you could use the invokable flag so you don't use the index
and then use this route:
it tells Laravel routing to respond to any route provided or nothing with the question mark "?" and responds with an invokable controller
Great tutorial my friend.
Hi, I got an error with this code, because Laravel on the RouteServiceProvider, while reading web.php to get our Route, it has already set up the namespace for us.
So, for this code at web.php:
need change to:
Thank you for the invoke parameters information.
Thank you, I'm always learning so I hope to help folks and in turn, learn myself, so I will differently try this way out!
As i do my friend, we are all learning, we progress by sharing knowledge :)