Add manual authentication, create, read, update task

This commit is contained in:
Thuan Bui
2025-03-06 17:00:09 +09:00
parent 154c37bce6
commit 67db6acefd
13 changed files with 325 additions and 20 deletions
+11
View File
@@ -8,4 +8,15 @@ use Illuminate\Database\Eloquent\Model;
class Task extends Model
{
use HasFactory;
protected $attributes = [
'completed' => false, // Set default value for completed
];
public function user() {
return $this->belongsTo(User::class);
}
public function category() {
return $this->belongsTo(Category::class);
}
}