mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#4433 Modül deneme süresi
This commit is contained in:
parent
944acb6a9e
commit
5500d8f932
@ -555,4 +555,11 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
->where('slug', '!=', '')
|
||||
->orderBy('publish_at', 'desc');
|
||||
}
|
||||
|
||||
public function findByCFJSON($key, $value)
|
||||
{
|
||||
return $this->currentAds()
|
||||
->whereJsonContains('cf_json', [$key => $value])
|
||||
->first();
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,4 +56,6 @@ interface AdvRepositoryInterface extends EntryRepositoryInterface
|
||||
public function getUserAds($userID = null, $status = "approved");
|
||||
|
||||
public function currentAds();
|
||||
|
||||
public function findByCFJSON($key, $value);
|
||||
}
|
||||
|
||||
@ -17,6 +17,8 @@ return [
|
||||
|
||||
'name' => env('APP_NAME', 'My Application'),
|
||||
|
||||
'application_domain' => env('APPLICATION_DOMAIN', null),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Environment
|
||||
|
||||
Loading…
Reference in New Issue
Block a user