как выпилить (updated_at) laravel
почему приходить
хотя у меня в миграции прописаны
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'
]);
Источник: Stack Overflow на русском