<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Task extends Model
{
    use HasFactory;
    protected $fillable = [
        'title',       // 💡 ADD THIS LINE to fix the mass assignment error
        'description', // Add other fields used in the form
        'reward',
        'link',
        'is_active',
        // Don't forget created_at and updated_at if you added them manually
    ];
}
