DEV Community

[Comment from a deleted post]
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. 🤘