Recently, I have to migrate some personal projects from Laravel 7.X to the latest Laravel version 8. After spending a long time making some testing in order to get rid of this issue (First, I thought I was missing any resources or namespace in my code), It appears that Laravel developers have decided to slightly modify the routing system. The synt ax of binding the string url to the string Controller is not recommended anymore, and this is because in the Service Routing providers, the $namespace attribute is commented by default For information, The $namespace is the key to how Laravel interprets your routes . In order to use the new routing system in your web.php or api.php, it is recommended to import the controller class.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners