mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -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', '!=', '')
|
->where('slug', '!=', '')
|
||||||
->orderBy('publish_at', 'desc');
|
->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 getUserAds($userID = null, $status = "approved");
|
||||||
|
|
||||||
public function currentAds();
|
public function currentAds();
|
||||||
|
|
||||||
|
public function findByCFJSON($key, $value);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,6 +17,8 @@ return [
|
|||||||
|
|
||||||
'name' => env('APP_NAME', 'My Application'),
|
'name' => env('APP_NAME', 'My Application'),
|
||||||
|
|
||||||
|
'application_domain' => env('APPLICATION_DOMAIN', null),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Environment
|
| Application Environment
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user