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

$url = action([HomeController::class, 'index']);
<?php     public function redirectAction($name, $parameters = [], $absolute = true, $navigate = false)

    {

        $this->redirect(action($name, $parameters, $absolute), $navigate);

    }

}