You can read the Carbon docs here:
https://github.com/briannesbitt/Carbon
As you can see, all you have to do is access the "timestamp" property. Like this:
$timestamp = $user->created_at->timestamp
I read laravel docs and override the getDateFormat. Then created in the migration of three fields
$table->integer('created_at');
$table->integer('updated_at');
$table->integer('deleted_at');
and it works. Thx.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community