Add finer grained resolution to created_at query
This commit is contained in:
parent
ad57700a41
commit
0b5178561b
2 changed files with 1 additions and 2 deletions
|
|
@ -238,7 +238,6 @@ class ClientFilters extends QueryFilters
|
|||
*/
|
||||
public function entityFilter()
|
||||
{
|
||||
//return $this->builder->whereCompanyId(auth()->user()->company()->id);
|
||||
return $this->builder->company();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ abstract class QueryFilters
|
|||
|
||||
try{
|
||||
|
||||
$created_at = Carbon::parse($value);
|
||||
$created_at = Carbon::parse($value)->toDateTimeString();
|
||||
|
||||
return $this->builder->where('created_at', '>=', $created_at);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue