mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
create my ads api
This commit is contained in:
parent
7466f07f70
commit
01a5968e80
@ -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'));
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user