Skip to main content

Filtering records with the Last Modified time in Laravel

  • February 23, 2022
  • 0 replies
  • 4 views

Hello, Everyone!
I have not a big issue on filtering the records by their Last Modified Time field.
Here is the code:

$airtable = new Airtable(array(
‘api_key’ => config(‘services.airtable.api_key’),
‘base’ => config(‘services.airtable.base_id’),
));

    $today_date = Carbon::now()->toDateString();
 
    $filtered_row = $airtable->getContent( 'Invoiced', ['filterByFormula' =>  "AND( LastModifiedTime = '. $today_date .' )"]);

This is in the Laravel Controller.
But it’s not working, returns the empty array as response.
Anybody, help me out.
Thank you in Advance!

This topic has been closed for replies.