Unless the code you posted is within a script tag inside a blade file, it is not possible to use Carbon inside of an external JavaScript file.
8
solved i want to use carbon format time with jquery but I don’t nkow how to convert jquery data to php [closed]