I want to get current timestamp in laravel 5 and I have done this-
$current_time = Carbon\\Carbon::now()->toDateTimeString();
I am getting e
For Laravel 5.5 or above just use the built in helper
$timestamp = now();
If you want a unix timestamp, you can also try this:
$unix_timestamp = now()->timestamp;