Create components from the dashboard

This commit is contained in:
James Brooks
2014-12-13 12:43:11 +00:00
parent 5853aa3f94
commit 5420ff91f7
5 changed files with 30 additions and 11 deletions
+3 -3
View File
@@ -6,12 +6,12 @@ class Component extends Eloquent implements \Dingo\Api\Transformer\Transformable
use ValidatingTrait;
protected $rules = [
'user_id' => 'required|integer',
'user_id' => 'integer|required',
'name' => 'required',
'status' => 'required|integer'
'status' => 'integer'
];
protected $fillable = ['name', 'description', 'status'];
protected $fillable = ['name', 'description', 'status', 'user_id'];
/**
* Lookup all of the incidents reported on the component.