Answers for "timestamp laravel migration custom column"

SQL
4

mysql timestamp in laravel migration

$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Posted by: Guest on August-04-2020
0

custom timestamp column laravel

class BaseModel extends Eloquent {
    const CREATED_AT = 'date_created';
    const UPDATED_AT = 'date_modified';
}
Posted by: Guest on October-26-2021

Code answers related to "timestamp laravel migration custom column"

Code answers related to "SQL"

Browse Popular Code Answers by Language