Fix service creation/updates, closes #306

This commit is contained in:
Dane Everitt 2017-02-17 20:40:50 -05:00
parent 99497adcb2
commit 824041f6ca
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 10 additions and 5 deletions

View file

@ -36,11 +36,13 @@ class Service extends Model
protected $table = 'services';
/**
* Fields that are not mass assignable.
* Fields that are mass assignable.
*
* @var array
*/
protected $fillable = ['id', 'created_at', 'updated_at'];
protected $fillable = [
'name', 'description', 'file', 'executable', 'startup',
];
/**
* Gets all service options associated with this service.