@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | class Task extends Model |
8 | 8 | { |
9 | - protected $fillable = ['name','description', 'user_id', 'completed']; |
|
9 | + protected $fillable = ['name', 'description', 'user_id', 'completed']; |
|
10 | 10 | |
11 | 11 | // protected $timestamps = true; |
12 | 12 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | 'name' => $this->name, |
19 | 19 | 'description' => $this->description, |
20 | 20 | 'user_id' => $this->user_id, |
21 | - 'completed' => $this->completed? true:false, |
|
21 | + 'completed' => $this->completed ? true:false, |
|
22 | 22 | 'created_at' => $this->created_at."", |
23 | 23 | 'updated_at' => $this->updated_at."", |
24 | 24 | ]; |