Open mhulse opened 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;
Timestamps are not bad if fresh Db, but it's good to know how to disable if adapting to db already created.
Top of model: