gearbox-solutions / eloquent-filemaker

A Model extension and Eloquent driver for Laravel connecting to FileMaker through the Data API
https://gearboxgo.com
MIT License
54 stars 16 forks source link

Update where date to allow for different operators #28

Closed likeadeckofcards closed 2 years ago

likeadeckofcards commented 2 years ago

The whereDate method of the builder was built to only allow the user to enter the date as the second parameter. However in order to follow along Laravel's conventions we should be able to pass the value in the second parameter or optionally expand it to insert the operator that we want to use as the second parameter and then pass the date as the third parameter. This PR adds this functionality and will default the operator to an = when no operator is passed in.