ambengers / laravel-query-filter

Laravel query filter provides an elegant way to filter your eloquent models via the request query string.
MIT License
30 stars 5 forks source link

How to define a filter without created_at #21

Closed Misagh90 closed 11 months ago

Misagh90 commented 1 year ago

I created a model without timestamps (public $timestamps = false;) but I have an error for returning resualt via filter:

Column not found: 1054 Unknown column 'created_at' in 'order clause'

How to solve this error without timestamps in my filter?

ambengers commented 11 months ago

@Misagh90 I just added a couple of tests to make sure the package works without issues on models that do not have timestamps.

Can you please provide a code snippet to replicate your issue?

ambengers commented 11 months ago

@Misagh90 Also, feel free to open a PR for this issue if you have a solution already.