Implemented TaskController

This commit is contained in:
Thuan Bui
2025-03-06 19:57:42 +09:00
parent 67db6acefd
commit 1e94cdbc20
6 changed files with 95 additions and 79 deletions
@@ -15,8 +15,8 @@ return new class extends Migration
{
Schema::create('tasks', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(User::class);
$table->foreignIdFor(Category::class);
$table->foreignIdFor(User::class)->constrained()->cascadeOnDelete();
$table->foreignIdFor(Category::class)->constrained()->cascadeOnDelete();
$table->string('name');
$table->longText('description');
$table->string('location');