xxxxxxxxxx
// config/app.php
return [
// ...
'timezone' => 'Asia/Kolkata',
// ...
];
xxxxxxxxxx
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'Europe/Paris',
xxxxxxxxxx
Schema::create('your_table', function (Blueprint $table) {
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$table->timestamp('updated_at')->nullable();
});