#4433 Modül deneme süresi

This commit is contained in:
diashalabi 2021-09-07 14:42:45 +03:00
parent 944acb6a9e
commit 5500d8f932
3 changed files with 11 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -56,4 +56,6 @@ interface AdvRepositoryInterface extends EntryRepositoryInterface
public function getUserAds($userID = null, $status = "approved");
public function currentAds();
public function findByCFJSON($key, $value);
}

View File

@ -17,6 +17,8 @@ return [
'name' => env('APP_NAME', 'My Application'),
'application_domain' => env('APPLICATION_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| Application Environment