loading...

Discussion on: Laravel Tutorial #2: Routes, Views, Controllers and Models

Collapse
thinkverse profile image
Kim Hallberg

If your controller will only have a single method, you can use the __invoke() method instead and just pass in only the controller Route::get('/index', 'IndexController'); instead of the controller method pair, gotta love invokable controllers. 🤘