corcel / corcel

Use WordPress backend with Laravel or any PHP application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to query for Posts with updated_at field ?

pkd2989 opened this issue · comments

Hi,

I want to get all Posts that are updated after a particular timestamp. What will be the syntax ?
I have tried

\App\Models\WPPost2::all(['updated_date']);

'updated_at'

but both returns error.

Thanks.