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;
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e476c1-665d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e476c1-665d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?