You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! friend, why my code have error after the code start? It show that: PHP Fatal error: Uncaught Error: Class 'Carbon\Carbon' not found, and my code is:
require_once $_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php';
use Carbon\Carbon;
use Chanthorn\CarbonKh\ToKhmerDate;
$date = Carbon::parse(strtotime($dateofWeek));
$khmerLunarDate = new ToKhmerDate($date);
echo $khmerLunarDate::format();
Thanks
The text was updated successfully, but these errors were encountered:
Hi! friend, why my code have error after the code start? It show that: PHP Fatal error: Uncaught Error: Class 'Carbon\Carbon' not found, and my code is:
require_once $_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php';
use Carbon\Carbon;
use Chanthorn\CarbonKh\ToKhmerDate;
$date = Carbon::parse(strtotime($dateofWeek));
$khmerLunarDate = new ToKhmerDate($date);
echo $khmerLunarDate::format();
Thanks
The text was updated successfully, but these errors were encountered: