Accept CarbonPeriod as whereBetween argument

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Unknown
    • laravel-4.0.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Laravel Eloquent query builder allows to compare a date field with a CarbonPeriod instance.

      https://github.com/laravel/framework/blob/v10.15.0/tests/Database/DatabaseQueryBuilderTest.php#L772

      Fix this feature and add tests.

              Assignee:
              Jérôme Tamarelle
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: