Merge pull request #1180 from openclassify/vedat

create my ads api
This commit is contained in:
Muammer Top 2021-10-01 12:36:26 +03:00 committed by GitHub
commit cbb5679909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,11 @@
<?php namespace Visiosoft\AdvsModule\Adv;
class AdvApiCollection extends AdvRepository
{
public function getMyAds()
{
return $this->model->userAdv()
->where('advs_advs.finish_at', '>', date('Y-m-d H:i:s'));
}
}