как выпилить (updated_at) laravel

Рейтинг: 0Ответов: 0Опубликовано: 22.07.2023

почему приходить

введите сюда описание изображения

хотя у меня в миграции прописаны

public function up(): void
{
    Schema::create('history_passwords', function (Blueprint $table) {
        $table->id();
        $table->unsignedBigInteger('user_id');
        $table->string('password');
        $table->string('description')->nullable();
        $table->date('created_at');
        $table->index('user_id','history_password_user_idx');
        $table->foreign('user_id','history_password_user_fk')->
        on('users')->references('id');
    });
}

Код который прописан в контроллере

 HistoryPassword::create([
  'user_id' => $user->id,
  'password' =>  $user->password,
  'description' => 'change'
]);

Ответы

Ответов пока нет.