I installed carbon, with composer and got an error when using it:
fatal error: Class" CarbonCarbon" not found
I installed it using composer require nesbot/carbon. The directory structure after installation is as follows:
somewhere?
update :
I saw a line in https://carbon.nesbot.com/ and tried it. It seemed to work. But the code is ugly, how to do this?
require "vendor/autoload.php";
I added similar code at the beginning of the file
require "./thinkphp/vendor/autoload.php";