Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 1, 2016
1 parent 76b9f7f commit f560487
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions eloquent.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,13 @@ If you need to customize the format of your timestamps, set the `$dateFormat` pr
protected $dateFormat = 'U';
}

If you need to use a different name for the `created_at` and `updated_at` fields in your table, set the `CREATED_AT` and `UPDATED_AT` constants in your model:
If you need to customize the names of the columns used to store the timestamps, you may set the `CREATED_AT` and `UPDATED_AT` constants in your model:

<?php

class Flight extends Model
{
/**
* The name of the "created at" column.
*
* @var string
*/
const CREATED_AT = 'creation_date';

/**
* The name of the "updated at" column.
*
* @var string
*/
const UPDATED_AT = 'last_update';
}

Expand Down

0 comments on commit f560487

Please sign in to comment.