Better db seeding for tests

This commit is contained in:
Jonny Barnes 2017-07-17 17:07:08 +01:00
parent e71c605acb
commit 20d71513f3
2 changed files with 7 additions and 10 deletions

View file

@ -14,9 +14,9 @@ class Contact extends Model
protected $table = 'contacts';
/**
* We shall set a blacklist of non-modifiable model attributes.
* We shall guard against mass-migration.
*
* @var array
*/
protected $guarded = ['id'];
protected $fillable = ['nick', 'name', 'homepage', 'twitter', 'facebook'];
}