Using Custom Timestamp Columns in Laravel Eloquent

Published: (December 19, 2025 at 10:58 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

Custom Timestamp Columns

If you need to customize the column names for created_at and updated_at, you can do so at the database level.

/**
 * Run the migrations.
 */
public function up(): void
{
    Schema::create('items', function (Blueprint $table) {
        $table->id();
        $table->string('title');
        // Custom...
    });
}
Back to Blog

Related posts

Read more »