mhulse / slim-php-boiler

So I can get up-and-running with Slim quickly.
Apache License 2.0
2 stars 0 forks source link

Disable eloquent timestamps #6

Open mhulse opened 7 years ago

mhulse commented 7 years ago

Top of model:

class UserProfile extends Model
{

  # Whereas, this explicitly tells Eloquent to use the table `user_profile`:
  protected $table = 'user_profile';

    // don't add timestamps
    public $timestamps = false;
mhulse commented 7 years ago

Timestamps are not bad if fresh Db, but it's good to know how to disable if adapting to db already created.