Thinkphp5.0.5 uses carbon

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:

Do you want to set

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";
Mar.29,2021

has it been introduced?

use Carbon\Carbon;
Menu