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. 🤘
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If your controller will only have a single method, you can use the
__invoke()
method instead and just pass in only the controllerRoute::get('/index', 'IndexController');
instead of the controller method pair, gotta love invokable controllers. 🤘