Laravel Eloquent에서 사용자 정의 타임스탬프 컬럼 사용하기
발행: (2025년 12월 20일 오전 12:58 GMT+9)
1 min read
원문: Dev.to
Source: Dev.to
Custom Timestamp Columns
created_at와 updated_at의 컬럼명을 커스터마이즈해야 할 경우, 데이터베이스 수준에서 설정할 수 있습니다.
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('items', function (Blueprint $table) {
$table->id();
$table->string('title');
// Custom...
});
}