Support the ongoing development of Laravel.io →
posted 2 years ago
Routing
Last updated by @nnngit 2 years ago.
0

laracontroller@method is still supported if you set the $namespace property in https://github.com/laravel/laravel/blob/9.x/app/Providers/RouteServiceProvider.php

But it's generally recommended to use the Route::get('/user', [UserController::class, 'index']); syntax.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

sslaravel nnngit Joined 26 Mar 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.