I don't have a way to test it at the moment but I think you just need to typehint.
// HomeController
class HomeController extends Controller
{
public function index(App $app)
{
return $app->version();
}
}
Could be wrong but I'm pretty sure your just missing the tyehinting. You could also use App as a facade I'm pretty sure in your controller
// HomeController
class HomeController extends Controller
{
public function index()
{
return App::version();
}
}