Skip to content

Don't include whereDate / whereMonth / whereDay / whereYear / whereTime #1624

@joelstein

Description

@joelstein

Versions:

  • ide-helper Version: 3.2.2
  • Laravel Version: 11.34.2
  • PHP Version: 8.3.14

Description:

This wonderful package (thank you!) adds something like the following if I have a date column on my model:

@method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDate($value)

However, whereDate is a Laravel method on Illuminate\Database\Query\Builder. Thus, it won't work to do something like this:

$invoice->whereDate(Date::today())->first();

We should exclude these methods:

  • whereDate
  • whereMonth
  • whereDay
  • whereYear
  • whereTime

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions