I tried to sow the databases in my project. When I did this, only the "title" and "post", "Created_at" and "Update_at" fields are inserted, they are not changed and are displayed as 0000-00-00 00:00:00. I also tried with time () too. It works correctly in ' php artisan tink', but the results in the database are not changed.
<?php
class QuestionsTableSeeder extends Seeder {
    public function run()
    {
        DB::table('questions')->truncate();
        $questions = array(
            'title' => 'Simple Question Title',
            'post' => 'Lorem ipsum dolor',
            'created_at' => time()
        );
        
         DB::table('questions')->insert($questions);
    }
}
source
share