open_in_new
content_copy
MyTable::whereDate( 'created_at', '<=', now()->subDays(30))->delete();