I want to get current timestamp in laravel 5 and I have done this-
$current_time = Carbon\\Carbon::now()->toDateTimeString();
I am getting e
You need to add another \ before your carbon class to start in the root namespace.
\
$current_time = \Carbon\Carbon::now()->toDateTimeString();
Also, make sure Carbon is loaded in your composer.json.
composer.json