· September 16, 2020 · ⋆ Laravel Before Laravel 8, if you wanted to define a route, you could do it like so. Here, as you can tell, UserController is the controller and index in the method of the controller we want to call on this route.
So, if you’ve just bootstrapped a new application using Laravel 8, you can start using the new syntax which encourages you to use Fully Qualified Class Names (FQCN) for controllers like so.
Get the latest articles delivered right to your inbox (I swear I won't spam) How to use Laravel 7 style controller route definitions in Laravel 8 New RateLimiter facade for defining named rate limiters in Laravel 8 Class based model factories in Laravel 8 Access application in maintenance mode using a secret token in Laravel 8 Personalized maintenance mode views in Laravel 8 How to use Laravel 7 style controller route definitions in Laravel 8 New RateLimiter facade for defining named rate limiters in Laravel 8 Class based model factories in Laravel 8 Access application in maintenance mode using a secret token in Laravel 8 Personalized maintenance mode views in Laravel 8