The action function generates a URL for the given controller action:
<?php use App\Http\Controllers\HomeController;

$url = action([HomeController::class, 'index']);