|Task newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Task newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Task query() * @method static \Illuminate\Database\Eloquent\Builder|Task whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereDescription($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereDueDate($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereNotifiedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Task whereUserId($value) * @mixin \Eloquent */ class Task extends Model { use HasFactory; /** * @var array */ protected $fillable = [ 'user_id', 'title', 'description', 'status', 'due_date', 'notified_at', ]; /** * @return array */ protected function casts(): array { return [ 'due_date' => 'date', 'notified_at' => 'datetime', 'status' => TaskStatus::class, ]; } public function user(): BelongsTo { return $this->belongsTo(User::class); } }