In Laravel 8.0, web.php, I want to pass controller object instead of class name, is this possible somehow?
Example:
$controller = new CrudController();
$controller->title = 'View items';
Route::get('/{table}/view', [$controller, 'index']);
$controller->title = 'Edit items';
Route::get('/{table}/edit', [$controller, 'index']);