@@ -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 | public function toArray() |
| 12 | 12 | { |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | 'name' => $this->name, |
| 16 | 16 | 'description' => $this->description, |
| 17 | 17 | 'user_id' => $this->user_id, |
| 18 | - 'completed' => $this->completed? true:false, |
|
| 18 | + 'completed' => $this->completed ? true:false, |
|
| 19 | 19 | 'created_at' => $this->created_at, |
| 20 | 20 | 'updated_at' => $this->updated_at, |
| 21 | 21 | ]; |