declare primary keys on all models

This commit is contained in:
j3d1 2019-12-15 18:06:02 +01:00
parent 3b6bbd3063
commit 035c8181ad
3 changed files with 8 additions and 0 deletions

View file

@ -16,6 +16,8 @@ class Event extends Model
'eid', 'name', 'slug', 'start', 'end', 'pre_start', 'post_end'
];
protected $primaryKey = 'eid';
/**
* The attributes excluded from the model's JSON form.
*