Category: Laravel, Laravel, PHP, PHP, javascript, javascript

· 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
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