first commit

This commit is contained in:
ExtraNetwork
2026-05-12 17:04:54 +03:00
commit e5c4b6aa13
1425 changed files with 284735 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\ApiAccessToken;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\ApiAccessToken;
class ApiAccessTokenRepository extends EleqouentAbstractRepository
{
private $apiAccessToken;
public function __construct(ApiAccessToken $apiAccessToken)
{
parent::__construct();
$this->apiAccessToken = $apiAccessToken;
$this->defaultModel = $this->apiAccessToken;
}
}

View File

@@ -0,0 +1,57 @@
<?php
namespace App\Core\Repository\ApplicationCache;
use Carbon\Carbon;
use Illuminate\Contracts\Cache\Repository as Cache;
class ApplicationCacheRepository
{
private $cache;
private $carbon;
protected $cacheLife = 3600; // use second time ...
private $cachePrefix = "gExtranetApi-";
public function __construct(
Cache $cache,
Carbon $carbon
)
{
$this->cache = $cache;
$this->carbon = $carbon;
}
private function createCacheStoreKey ( $cacheId )
{
return $this->cachePrefix.$cacheId;
}
public function storeCache($cacheId , $param){
$result = $param;
$result["cacheId"] = $cacheId;
$cacheSignature = $this->createCacheStoreKey($cacheId);
$expiresAt = $this->carbon->addMinutes($this->cacheLife/60)->toDateTimeString();
$this->cache->put($cacheSignature, $result, $this->cacheLife);
return [
'cacheId' => $cacheId,
'expiresAt' => $expiresAt
];
}
public function getCache($cacheId){
$cacheId = $this->createCacheStoreKey($cacheId);
$cacheInfo = $this->cache->get($cacheId);
return $cacheInfo;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\AwardsCertificateCategory;
use App\Models\AwardsCertificateCategory;
use App\Core\Repository\EleqouentAbstractRepository;
class AwardsCertificateCategoryRepository extends EleqouentAbstractRepository
{
private $awardsCertificateCategory;
public function __construct(AwardsCertificateCategory $awardsCertificateCategory)
{
parent::__construct();
$this->awardsCertificateCategory = $awardsCertificateCategory;
$this->defaultModel = $this->awardsCertificateCategory;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Models\BookingAddon;
use App\Core\Repository\EleqouentAbstractRepository;
class BookingAddonRepository extends EleqouentAbstractRepository
{
private $bookingAddon;
public function __construct(BookingAddon $bookingAddon)
{
parent::__construct();
$this->bookingAddon = $bookingAddon;
$this->defaultModel = $this->bookingAddon;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Models\BookingContact;
use App\Core\Repository\EleqouentAbstractRepository;
class BookingContactRepository extends EleqouentAbstractRepository
{
private $bookingContact;
public function __construct(BookingContact $bookingContact)
{
parent::__construct();
$this->bookingContact = $bookingContact;
$this->defaultModel = $this->bookingContact;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\BookingPaymentDataCheck;
class BookingPaymentDataCheckRepository extends EleqouentAbstractRepository
{
private $bookingPaymentDataCheck;
public function __construct(BookingPaymentDataCheck $bookingPaymentDataCheck)
{
parent::__construct();
$this->bookingPaymentDataCheck = $bookingPaymentDataCheck;
$this->defaultModel = $this->bookingPaymentDataCheck;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\BookingPaymentData;
class BookingPaymentDataRepository extends EleqouentAbstractRepository
{
private $bookingPaymentData;
public function __construct(BookingPaymentData $bookingPaymentData)
{
parent::__construct();
$this->bookingPaymentData = $bookingPaymentData;
$this->defaultModel = $this->bookingPaymentData;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Models\BookingPayment;
use App\Core\Repository\EleqouentAbstractRepository;
class BookingPaymentRepository extends EleqouentAbstractRepository
{
private $bookingPayment;
public function __construct(BookingPayment $bookingPayment)
{
parent::__construct();
$this->bookingPayment = $bookingPayment;
$this->defaultModel = $this->bookingPayment;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Models\Booking;
use App\Core\Repository\EleqouentAbstractRepository;
class BookingRepository extends EleqouentAbstractRepository
{
private $booking;
public function __construct(Booking $booking)
{
parent::__construct();
$this->booking = $booking;
$this->defaultModel = $this->booking;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\BookingRoomPax;
class BookingRoomPaxRepository extends EleqouentAbstractRepository
{
private $bookingRoomPax;
public function __construct(BookingRoomPax $bookingRoomPax)
{
parent::__construct();
$this->bookingRoomPax = $bookingRoomPax;
$this->defaultModel = $this->bookingRoomPax;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Models\BookingRoom;
use App\Core\Repository\EleqouentAbstractRepository;
class BookingRoomRepository extends EleqouentAbstractRepository
{
private $bookingRoom;
public function __construct(BookingRoom $bookingRoom)
{
parent::__construct();
$this->bookingRoom = $bookingRoom;
$this->defaultModel = $this->bookingRoom;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\BookingStatus;
class BookingStatusRepository extends EleqouentAbstractRepository
{
private $bookingStatus;
public function __construct(BookingStatus $bookingStatus)
{
parent::__construct();
$this->bookingStatus = $bookingStatus;
$this->defaultModel = $this->bookingStatus;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\BookingTicket;
class BookingTicketRepository extends EleqouentAbstractRepository
{
private $booking;
public function __construct(BookingTicket $bookingTicket)
{
parent::__construct();
$this->bookingTicket = $bookingTicket;
$this->defaultModel = $this->bookingTicket;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Booking;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyChannelCoupon;
class PropertyChannelCouponRepository extends EleqouentAbstractRepository
{
private $model;
public function __construct(PropertyChannelCoupon $model)
{
parent::__construct();
$this->model = $model;
$this->defaultModel = $this->model;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\ChannelManager;
use App\Models\ChannelManager;
use App\Core\Repository\EleqouentAbstractRepository;
class ChannelManagerRepository extends EleqouentAbstractRepository
{
private $channelManager;
public function __construct(ChannelManager $channelManager)
{
parent::__construct();
$this->channelManager = $channelManager;
$this->defaultModel = $this->channelManager;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\ChannelManagerBooking;
use App\Models\ChannelManagerBooking;
use App\Core\Repository\EleqouentAbstractRepository;
class ChannelManagerBookingRepository extends EleqouentAbstractRepository
{
private $channelManagerBooking;
public function __construct(ChannelManagerBooking $channelManagerBooking)
{
parent::__construct();
$this->channelManagerBooking = $channelManagerBooking;
$this->defaultModel = $this->channelManagerBooking;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\ChannelManagerLog;
use App\Models\ChannelManagerLog;
use App\Core\Repository\EleqouentAbstractRepository;
class ChannelManagerLogRepository extends EleqouentAbstractRepository
{
private $channelManager;
public function __construct(ChannelManagerLog $channelManagerLog)
{
parent::__construct();
$this->channelManagerLog = $channelManagerLog;
$this->defaultModel = $this->channelManagerLog;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\ChannelManagerMapping;
use App\Models\ChannelManagerMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class ChannelManagerMappingRepository extends EleqouentAbstractRepository
{
private $channelManagerMapping;
public function __construct(ChannelManagerMapping $channelManagerMapping)
{
parent::__construct();
$this->channelManagerMapping = $channelManagerMapping;
$this->defaultModel = $this->channelManagerMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\ChannelManagerPropertyMapping;
use App\Models\ChannelManagerPropertyMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class ChannelManagerPropertyMappingRepository extends EleqouentAbstractRepository
{
private $channelManagerPropertyMapping;
public function __construct(ChannelManagerPropertyMapping $channelManagerPropertyMapping)
{
parent::__construct();
$this->channelManagerPropertyMapping = $channelManagerPropertyMapping;
$this->defaultModel = $this->channelManagerPropertyMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\ChannelManagerPropertyRateMapping;
use App\Models\ChannelManagerPropertyRateMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class ChannelManagerPropertyRateMappingRepository extends EleqouentAbstractRepository
{
private $channelManagerPropertyRateMapping;
public function __construct(ChannelManagerPropertyRateMapping $channelManagerPropertyRateMapping)
{
parent::__construct();
$this->channelManagerPropertyRateMapping = $channelManagerPropertyRateMapping;
$this->defaultModel = $this->channelManagerPropertyRateMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Country;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\Country;
class CountryRepository extends EleqouentAbstractRepository
{
private $country;
public function __construct(Country $country)
{
parent::__construct();
$this->country = $country;
$this->defaultModel = $this->country;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\Currency;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\Currency;
class CurrencyRepository extends EleqouentAbstractRepository
{
private $currency;
public function __construct(Currency $currency)
{
parent::__construct();
$this->currency = $currency;
$this->defaultModel = $this->currency;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\CurrencyRates;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\CurrencyRates;
class CurrencyRatesRepository extends EleqouentAbstractRepository
{
private $flightSearch;
public function __construct(CurrencyRates $currencyRates)
{
parent::__construct();
$this->currencyRates = $currencyRates;
$this->defaultModel = $this->currencyRates;
}
}

View File

@@ -0,0 +1,522 @@
<?php
namespace App\Core\Repository;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use App\Models\Users;
use Exception;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\DB;
abstract class EleqouentAbstractRepository
{
protected $defaultModel = null;
public function __construct()
{
}
protected function find(Model $model, $id, $param = null, $column = ["*"])
{
$param = $param ? $param : [];
$param["criteria"][] = ["field" => "id", "condition" => "=", "value" => $id];
$param["firstRow"] = true;
return $this->findByCriteria($model, $param, $column);
}
protected function all(Model $model)
{
return $this->findByCriteria($model);
}
private function withCriteria($get, $param)
{
foreach ($param as $key => $value) {
$get->with([$value['method'] => function ($query) use ($value) {
if (isset($value['orderBy'])) {
foreach ($value['orderBy'] as $orderByKey => $orderByValue) {
$query->orderBy($orderByValue['field'], $orderByValue['value']);
}
}
if (isset($value['field'])) {
foreach ($value['field'] as $fieldValue) {
$query->where($fieldValue['field'], $fieldValue['condition'], $fieldValue['value']);
}
}
if (isset($value['whereIn'])) {
foreach ($value['whereIn'] as $fieldValue) {
$query->whereIn($fieldValue['field'], $fieldValue['value']);
}
}
}]);
}
return $get;
}
private function withBuild(Builder $builder, array $withParams)
{
foreach ($withParams as $perParamKey => $perParamValue) {
if (!is_array($perParamValue)) {
$builder->with($perParamValue);
continue;
} else {
$builder->with($perParamKey);
}
if (isset($perParamValue["with"])) {
$builder = $this->withBuild($builder, $perParamValue);
}
}
return $builder;
}
protected function findByCriteria(Model $model, $param = null, $column = ['*'])
{
try {
if (isset($param["removeAppends"])) {
$model->removeAppends($param["removeAppends"]);
} else {
$model->removeAppends([]);
}
if (isset($param["addAppends"])) {
$model->addAppends($param["addAppends"]);
} else {
$model->addAppends([]);
}
$get = $model->on('mysql');
if (isset($param["selectRaw"])) {
$get = $get->select(DB::raw($param["selectRaw"]));
}
if (isset($param["criteria"])) {
$get->where(
function ($query) use ($param) {
if (isset($param['whereOr'])) {
foreach ($param['whereOr'] as $key => $value) {
$query->whereOr($value['field'], $value['condition'], $value['value']);
}
}
if (isset($param['criteria'])) {
foreach ($param['criteria'] as $key => $value) {
$query->where($value['field'], $value['condition'], $value['value']);
}
}
}
);
}
if (isset($param['criteriaWhere'])) {
$whereType = fillOnUndefined($param['criteriaWhere'], 'whereType', 'where');
$get->$whereType (
function ($query) use ($param) {
foreach ($param['criteriaWhere'] as $criteria) {
$whereType = $criteria['whereType'];
$query->$whereType(
function ($q) use ($criteria) {
foreach ($criteria['params'] as $key => $value) {
if (isset($value['where'])) {
if ($value['where'] == 'OR') {
$q->whereOr($value['field'], $value['condition'], $value['value']);
} else {
$q->where($value['field'], $value['condition'], $value['value']);
}
}
}
}
);
}
}
);
}
if (isset($param["criteriaWhereRaw"])) {
$get->where(
function ($query) use ($param) {
if (isset($param['criteriaWhereRaw'])) {
foreach ($param['criteriaWhereRaw'] as $key => $value) {
$query->whereRaw($value['query'], $value['binds']);
}
}
}
);
}
if (isset($param["whereOr"])) {
$get->where(
function ($query) use ($param) {
if (isset($param['whereOr'])) {
foreach ($param['whereOr'] as $key => $value) {
$query->orWhere($value['field'], $value['condition'], $value['value']);
}
}
}
);
}
if (isset($param['whereIn'])) {
foreach ($param['whereIn'] as $whereInKey => $whereInValue) {
$get->whereIn($whereInValue['field'], $whereInValue['value']);
}
}
if (isset($param['whereNotIn'])) {
foreach ($param['whereNotIn'] as $whereInKey => $whereInValue) {
$get->whereNotIn($whereInValue['field'], $whereInValue['value']);
}
}
if (isset($param['has'])) {
foreach ($param["has"] as $perHas) {
$get->has($perHas["title"], $perHas["condition"], $perHas["value"]);
}
}
if (isset($param['whereHas'])) {
foreach ($param['whereHas'] as $key => $value) {
$get->whereHas($value['title'], function ($get) use ($value) {
foreach ($value['criteria']['param'] as $criteria) {
$queryType = $value['criteria']['type'];
if ($queryType == 'whereIn') {
$get->whereIn($criteria['field'], $criteria['value']);
} else {
$get->$queryType($criteria['field'], $criteria['condition'], $criteria['value']);
}
}
});
}
}
/*Ex With Algorithm*/
if (isset($param['with'])) {
foreach ($param['with'] as $withKey => $withValue) {
$get->with($withValue);
}
}
if (isset($param['withCriteria'])) {
$get = $this->withCriteria($get, $param['withCriteria']);
}
if (isset($param['orderBy'])) {
foreach ($param['orderBy'] as $orderByKey => $orderByValue) {
$get->orderBy($orderByValue['field'], $orderByValue['value']);
}
}
if (isset($param['groupBy'])) {
foreach ($param['groupBy'] as $perOrderBy) {
$get->groupBy($perOrderBy);
}
}
if (isset($param['skip'])) {
$get->skip($param['skip']);
}
if (isset($param['take'])) {
$get->take($param['take']);
}
if (isset($param['sum'])) {
return $get->sum($param['sum']);
}
if (isset($param['count'])) {
return $get->count();
}
if (isset($param["toSql"])) {
return $get->toSql();
}
$get = isset($param["firstRow"]) ? $get->first($column) : $get->get($column);
if (isset($param['keyBy'])) {
$get = $get->keyBy($param['keyBy']);
}
if (isset($param["getRaw"])) {
return $get;
}
return ($get) ? $get->toArray() : [];
} catch (Exception $e) {
Log::error($e->getMessage());
}
}
protected function update(Model $model, $id, $param)
{
try {
$update = $model->where('id', $id)->update($param);
$update = $update ? $this->find($model, $id) : false;
return output(['data' => $update]);
} catch (Exception $e) {
$message = $e->getMessage();
return output(['status' => -1, 'message' => $message]);
}
}
protected function updateWhere(Model $model, $value, $param)
{
try {
$update = $model->where(
function ($query) use ($value) {
if (isset($value['criteria'])) {
foreach ($value['criteria'] as $key => $value) {
$query->where($value['field'], $value['condition'], $value['value']);
}
}
}
);
if (isset($value['orderBy'])) {
foreach ($value['orderBy'] as $orderByKey => $orderByValue) {
$update->orderBy($orderByValue['field'], $orderByValue['value']);
}
}
$update->first();
$update = $update->update($param);
$update = $update ? true : false;
return output(['data' => $update]);
} catch (Exception $e) {
$message = $e->getTraceAsString();
return output(['status' => -1, 'message' => $message]);
}
}
protected function updateWhereIn(Model $model, $id, $param)
{
try {
$update = $model->whereIn('id', $id)->update($param);
$update = $update ? $update : false;
return output(['data' => $update]);
} catch (Exception $e) {
$message = $e->getMessage();
return output(['status' => -1, 'message' => $message]);
}
}
protected function updateWhereBulk(Model $model, $value, $param)
{
try {
$update = $model->where(
function ($query) use ($value) {
if (isset($value['criteria'])) {
foreach ($value['criteria'] as $key => $value) {
$query->where($value['field'], $value['condition'], $value['value']);
}
}
}
);
if (isset($value['orderBy'])) {
foreach ($value['orderBy'] as $orderByKey => $orderByValue) {
$update->orderBy($orderByValue['field'], $orderByValue['value']);
}
}
$update = $update->update($param);
$update = $update ? true : false;
return output(['data' => $update]);
} catch (Exception $e) {
$message = $e->getTraceAsString();
return output(['status' => -1, 'message' => $message]);
}
}
protected function create(Model $model, $data)
{
try {
$create = $model->create($data);
return output(['data' => $create->toArray()]);
} catch (Exception $e) {
$message = $e->getMessage();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
}
}
protected function insert(Model $model, $data)
{
try {
$create = $model->insert($data);
return output(['data' => $create]);
} catch (QueryException $e) {
$message = $e->getMessage();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
} catch (Exception $e) {
$message = $e->getMessage();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
}
}
protected function createAll(Model $model, $data)
{
try {
$create = [];
foreach ($data as $perData) {
$result = $this->create($model, $perData);
if ($result["status"] != "success") {
throw new Exception($result["message"]);
}
$create[] = $result["data"];
}
return output(['data' => $create]);
} catch (Exception $e) {
$message = $e->getTraceAsString();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
}
}
protected function updateOrCreate(Model $model, array $criteria, array $saveData)
{
try {
$findRow = $this->findByCriteria
(
$model,
["criteria" => $criteria, "firstRow" => 1, "getRaw" => 1]
);
$model->on("mysql");
if ($findRow) {
$result = $this->update($model, $findRow["id"], $saveData);
} else {
$result = $this->create($model, $saveData);
}
return $result;
} catch (Exception $e) {
$message = $e->getTraceAsString();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
}
}
protected function delete(Model $model, array $param)
{
try {
$param["removeAppends"] = ["*"];
$param["with"] = [];
$deleteRows = $this->findByCriteria($model, $param, ["id"]);
if (!$deleteRows) {
return null;
}
$deleteRows = singleElementArray($deleteRows);
$deleteIds = pickItemFromArray("id", $deleteRows);
$result = $model->whereIn("id", $deleteIds);
if ($result->count() > 0) {
$deletedRows = $result->get()->toArray();
if ($result->delete()) {
return $deletedRows;
}
}
return null;
} catch (Exception $e) {
$message = $e->getTraceAsString();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
}
}
protected function destroy(Model $model, array $param)
{
try {
if (!$param) {
return null;
}
$deletedRows = $model->destroy($param);
return output(['data' => $deletedRows]);;
} catch (Exception $e) {
$message = $e->getTraceAsString();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
}
}
//Todo: Bu fonksiyon iyileştirilecek
protected function deleteById(Model $model, $id)
{
try {
$result = $model->whereIn("id", $id);
if ($result->count() > 0) {
$deletedRows = $result->get()->toArray();
if ($result->delete()) {
return $deletedRows;
}
}
return null;
} catch (Exception $e) {
$message = $e->getTraceAsString();
Log::error($message);
return output(['status' => -1, 'message' => $message]);
}
}
public function __call($method, $args)
{
try {
if (method_exists($this, $method)) {
array_unshift($args, $this->defaultModel);
return call_user_func_array(array(&$this, $method), $args);
} else {
throw new Exception("'" . __CLASS__ . "' does not have '" . $method . "' method", 1);
}
} catch (Exception $e) {
die($e->getMessage());
}
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\GeneralTimezone;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\GeneralTimezone;
class GeneralTimezoneRepository extends EleqouentAbstractRepository
{
private $GeneralTimezone;
public function __construct(GeneralTimezone $GeneralTimezone)
{
parent::__construct();
$this->GeneralTimezone = $GeneralTimezone;
$this->defaultModel = $this->GeneralTimezone;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Ip2NationCountries;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\Ip2nationCountries;
class Ip2NationCountriesRepository extends EleqouentAbstractRepository
{
private $ip2nationCountries;
public function __construct ( Ip2nationCountries $ip2nationCountries )
{
parent::__construct ();
$this->ip2nationCountries = $ip2nationCountries;
$this->defaultModel = $this->ip2nationCountries;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\IpNation;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\IpNation;
class IpNationRepository extends EleqouentAbstractRepository
{
private $ipNation;
public function __construct (IpNation $ipNation )
{
parent::__construct ();
$this->ipNation = $ipNation;
$this->defaultModel = $this->ipNation;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Jobs;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\Jobs;
class JobsRepository extends EleqouentAbstractRepository
{
private $jobs;
public function __construct ( Jobs $jobs )
{
parent::__construct ();
$this->jobs = $jobs;
$this->defaultModel = $this->jobs;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Language;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\Language;
class LanguageRepository extends EleqouentAbstractRepository
{
private $language;
public function __construct(Language $language)
{
parent::__construct();
$this->language = $language;
$this->defaultModel = $this->language;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\LanguageBase;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\LanguageBase;
class LanguageBaseRepository extends EleqouentAbstractRepository
{
private $languageBase;
public function __construct(LanguageBase $languageBase)
{
parent::__construct();
$this->languageBase = $languageBase;
$this->defaultModel = $this->languageBase;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\LanguageTranslate;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\LanguageTranslate;
class LanguageTranslateRepository extends EleqouentAbstractRepository
{
private $languageTranslate;
public function __construct(LanguageTranslate $languageTranslate)
{
parent::__construct();
$this->languageTranslate = $languageTranslate;
$this->defaultModel = $this->languageTranslate;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Offer;
use App\Models\Offer;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferRepository extends EleqouentAbstractRepository
{
private $offer;
public function __construct(Offer $offer)
{
parent::__construct();
$this->offer = $offer;
$this->defaultModel = $this->offer;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferAccommodationMapping;
use App\Models\OfferAccommodationMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferAccommodationMappingRepository extends EleqouentAbstractRepository
{
private $offerAccommodationMapping;
public function __construct(OfferAccommodationMapping $offerAccommodationMapping)
{
parent::__construct();
$this->offerAccommodationMapping = $offerAccommodationMapping;
$this->defaultModel = $this->offerAccommodationMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferCancellationPolicy;
use App\Models\OfferCancellationPolicy;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferCancellationPolicyRepository extends EleqouentAbstractRepository
{
private $offerCancellationPolicy;
public function __construct(OfferCancellationPolicy $offerCancellationPolicy)
{
parent::__construct();
$this->offerCancellationPolicy = $offerCancellationPolicy;
$this->defaultModel = $this->offerCancellationPolicy;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferConfirmType;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\OfferConfirmType;
class OfferConfirmTypeRepository extends EleqouentAbstractRepository
{
private $offerConfirmType;
public function __construct(OfferConfirmType $offerConfirmType)
{
parent::__construct();
$this->offerConfirmType = $offerConfirmType;
$this->defaultModel = $this->offerConfirmType;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferContactMapping;
use App\Models\OfferContactMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferContactMappingRepository extends EleqouentAbstractRepository
{
private $offerContactMapping;
public function __construct(OfferContactMapping $offerContactMapping)
{
parent::__construct();
$this->offerContactMapping = $offerContactMapping;
$this->defaultModel = $this->offerContactMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferFactMapping;
use App\Models\OfferFactMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferFactMappingRepository extends EleqouentAbstractRepository
{
private $offerFactMapping;
public function __construct(OfferFactMapping $offerFactMapping)
{
parent::__construct();
$this->offerFactMapping = $offerFactMapping;
$this->defaultModel = $this->offerFactMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferImportantNotes;
use App\Models\OfferImportantNotes;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferImportantNotesRepository extends EleqouentAbstractRepository
{
private $offerImportantNotes;
public function __construct(OfferImportantNotes $offerImportantNotes)
{
parent::__construct();
$this->offerImportantNotes = $offerImportantNotes;
$this->defaultModel = $this->offerImportantNotes;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferPaymentType;
use App\Models\OfferPaymentType;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferPaymentTypeRepository extends EleqouentAbstractRepository
{
private $offerPaymentType;
public function __construct(OfferPaymentType $offerPaymentType)
{
parent::__construct();
$this->offerPaymentType = $offerPaymentType;
$this->defaultModel = $this->offerPaymentType;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferPhotoMapping;
use App\Models\OfferPhotoMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferPhotoMappingRepository extends EleqouentAbstractRepository
{
private $offerPhotoMapping;
public function __construct(OfferPhotoMapping $offerPhotoMapping)
{
parent::__construct();
$this->offerPhotoMapping = $offerPhotoMapping;
$this->defaultModel = $this->offerPhotoMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferPrice;
use App\Models\OfferPrice;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferPriceRepository extends EleqouentAbstractRepository
{
private $offerPrice;
public function __construct(OfferPrice $offerPrice)
{
parent::__construct();
$this->offerPrice = $offerPrice;
$this->defaultModel = $this->offerPrice;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\OfferRoomMapping;
use App\Models\OfferRoomMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class OfferRoomMappingRepository extends EleqouentAbstractRepository
{
private $offerRoomMapping;
public function __construct(OfferRoomMapping $offerRoomMapping)
{
parent::__construct();
$this->offerRoomMapping = $offerRoomMapping;
$this->defaultModel = $this->offerRoomMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PaymentBinNumber;
use App\Models\PaymentBinNumber;
use App\Core\Repository\EleqouentAbstractRepository;
class PaymentBinNumberRepository extends EleqouentAbstractRepository
{
private $paymentBinNumber;
public function __construct(PaymentBinNumber $paymentBinNumber)
{
parent::__construct();
$this->paymentBinNumber = $paymentBinNumber;
$this->defaultModel = $this->paymentBinNumber;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PaymentTransaction;
use App\Models\PaymentTransaction;
use App\Core\Repository\EleqouentAbstractRepository;
class PaymentTransactionRepository extends EleqouentAbstractRepository
{
private $paymentTransaction;
public function __construct(PaymentTransaction $paymentTransaction)
{
parent::__construct();
$this->paymentTransaction = $paymentTransaction;
$this->defaultModel = $this->paymentTransaction;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PaymentType;
use App\Models\PaymentType;
use App\Core\Repository\EleqouentAbstractRepository;
class PaymentTypeRepository extends EleqouentAbstractRepository
{
private $paymentType;
public function __construct(PaymentType $paymentType)
{
parent::__construct();
$this->paymentType = $paymentType;
$this->defaultModel = $this->paymentType;
}
}

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Core\Repository\Permission;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\Permission;
use App\Models\PermissionMenuModel;
class PermissionRepository extends EleqouentAbstractRepository
{
private $permission;
private $permissionMenuModel;
public function __construct(Permission $permission, PermissionMenuModel $permissionMenuModel)
{
parent::__construct();
$this->permission = $permission;
$this->permissionMenuModel = $permissionMenuModel;
$this->defaultModel = $this->permission;
}
public function permissionMenuModelFindByCriteria ( array $params )
{
return $this->findByCriteria($this->permissionMenuModel,$params);
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PermissionGroup;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PermissionGroup;
class PermissionGroupRepository extends EleqouentAbstractRepository
{
private $permissionGroup;
public function __construct(PermissionGroup $permissionGroup)
{
parent::__construct();
$this->permissionGroup = $permissionGroup;
$this->defaultModel = $this->permissionGroup;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PermissionGroupMapping;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PermissionGroupMapping;
class PermissionGroupMappingRepository extends EleqouentAbstractRepository
{
private $permissionGroupMapping;
public function __construct(PermissionGroupMapping $permissionGroupMapping)
{
parent::__construct();
$this->permissionGroupMapping = $permissionGroupMapping;
$this->defaultModel = $this->permissionGroupMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PermissionGroupUserMapping;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PermissionGroupUserMapping;
class PermissionGroupUserMappingRepository extends EleqouentAbstractRepository
{
private $permissionGroupUserMapping;
public function __construct(PermissionGroupUserMapping $permissionGroupUserMapping)
{
parent::__construct();
$this->permissionGroupUserMapping = $permissionGroupUserMapping;
$this->defaultModel = $this->permissionGroupUserMapping;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\PhotoGoogleLabel;
use App\Models\PhotoGoogleLabel;
use App\Core\Repository\EleqouentAbstractRepository;
class PhotoGoogleLabelRepository extends EleqouentAbstractRepository
{
private $photoGoogleLabel;
public function __construct(PhotoGoogleLabel $photoGoogleLabel)
{
parent::__construct();
$this->photoGoogleLabel = $photoGoogleLabel;
$this->defaultModel = $this->photoGoogleLabel;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PlaceCategoryField;
use App\Models\PlaceCategoryField;
use App\Core\Repository\EleqouentAbstractRepository;
class PlaceCategoryFieldRepository extends EleqouentAbstractRepository
{
private $placeCategoryField;
public function __construct(PlaceCategoryField $placeCategoryField)
{
parent::__construct();
$this->placeCategoryField = $placeCategoryField;
$this->defaultModel = $this->placeCategoryField;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PlaceCategoryFieldMapping;
use App\Models\PlaceCategoryFieldMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PlaceCategoryFieldMappingRepository extends EleqouentAbstractRepository
{
private $placeCategoryFieldMapping;
public function __construct(PlaceCategoryFieldMapping $placeCategoryFieldMapping)
{
parent::__construct();
$this->placeCategoryFieldMapping = $placeCategoryFieldMapping;
$this->defaultModel = $this->placeCategoryFieldMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PlaceCategoryFieldOption;
use App\Models\PlaceCategoryFieldOption;
use App\Core\Repository\EleqouentAbstractRepository;
class PlaceCategoryFieldOptionRepository extends EleqouentAbstractRepository
{
private $placeCategoryFieldOption;
public function __construct(PlaceCategoryFieldOption $placeCategoryFieldOption)
{
parent::__construct();
$this->placeCategoryFieldOption = $placeCategoryFieldOption;
$this->defaultModel = $this->placeCategoryFieldOption;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PlaceCategoryFieldOptionFieldMapping;
use App\Models\PlaceCategoryFieldOptionFieldMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PlaceCategoryFieldOptionFieldMappingRepository extends EleqouentAbstractRepository
{
private $placeCategoryFieldOptionFieldMapping;
public function __construct(PlaceCategoryFieldOptionFieldMapping $placeCategoryFieldOptionFieldMapping)
{
parent::__construct();
$this->placeCategoryFieldOptionFieldMapping = $placeCategoryFieldOptionFieldMapping;
$this->defaultModel = $this->placeCategoryFieldOptionFieldMapping;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\Product;
use App\Models\ProductParameterMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class ProductParameterMappingRepository extends EleqouentAbstractRepository
{
private $productParameterMapping;
public function __construct(ProductParameterMapping $productParameterMapping)
{
parent::__construct();
$this->productParameterMapping = $productParameterMapping;
$this->defaultModel = $this->productParameterMapping;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\Product;
use App\Models\Product;
use App\Core\Repository\EleqouentAbstractRepository;
class ProductRepository extends EleqouentAbstractRepository
{
private $product;
public function __construct(Product $product)
{
parent::__construct();
$this->product = $product;
$this->defaultModel = $this->product;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\Product;
use App\Models\PropertyProductMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyProductMappingRepository extends EleqouentAbstractRepository
{
private $propertyProductMapping;
public function __construct(PropertyProductMapping $propertyProductMapping)
{
parent::__construct();
$this->propertyProductMapping = $propertyProductMapping;
$this->defaultModel = $this->propertyProductMapping;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\PromotionType;
use App\Models\PromotionType;
use App\Core\Repository\EleqouentAbstractRepository;
class PromotionTypeRepository extends EleqouentAbstractRepository
{
private $promotionType;
public function __construct(PromotionType $promotionType)
{
parent::__construct();
$this->promotionType = $promotionType;
$this->defaultModel = $this->promotionType;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\Property;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\Property;
class PropertyRepository extends EleqouentAbstractRepository
{
private $Property;
public function __construct(Property $Property)
{
parent::__construct();
$this->Property = $Property;
$this->defaultModel = $this->Property;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyAdditionalInfo;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyAdditionalInfoKey;
class PropertyAdditionalInfoKeyRepository extends EleqouentAbstractRepository
{
private $propertyAdditionalInfoKey;
public function __construct(PropertyAdditionalInfoKey $propertyAdditionalInfoKey)
{
parent::__construct();
$this->propertyAdditionalInfoKey = $propertyAdditionalInfoKey;
$this->defaultModel = $this->propertyAdditionalInfoKey;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyAdditionalInfo;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyAdditionalInfo;
class PropertyAdditionalInfoRepository extends EleqouentAbstractRepository
{
private $propertyAdditionalInfo;
public function __construct(PropertyAdditionalInfo $propertyAdditionalInfo)
{
parent::__construct();
$this->propertyAdditionalInfo= $propertyAdditionalInfo;
$this->defaultModel = $this->propertyAdditionalInfo;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyAddon;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyAddon;
class PropertyAddonRepository extends EleqouentAbstractRepository
{
private $model;
public function __construct(PropertyAddon $model)
{
parent::__construct();
$this->model = $model;
$this->defaultModel = $this->model;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyAddon;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyChannelAddon;
class PropertyChannelAddonRepository extends EleqouentAbstractRepository
{
private $model;
public function __construct(PropertyChannelAddon $model)
{
parent::__construct();
$this->model = $model;
$this->defaultModel = $this->model;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyAvailabilityType;
use App\Models\PropertyAvailabilityType;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyAvailabilityTypeRepository extends EleqouentAbstractRepository
{
private $propertyAvailabilityType;
public function __construct(PropertyAvailabilityType $propertyAvailabilityType)
{
parent::__construct();
$this->propertyAvailabilityType = $propertyAvailabilityType;
$this->defaultModel = $this->propertyAvailabilityType;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\PropertyAwardsCertificate;
use App\Models\PropertyAwardsCertificate;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyAwardsCertificateRepository extends EleqouentAbstractRepository
{
private $propertyAwardsCertificate;
public function __construct(PropertyAwardsCertificate $propertyAwardsCertificate)
{
parent::__construct();
$this->propertyAwardsCertificate = $propertyAwardsCertificate;
$this->defaultModel = $this->propertyAwardsCertificate;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyBookingEngine;
use App\Models\PropertyBookingEngine;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyBookingEngineRepository extends EleqouentAbstractRepository
{
private $propertyBookingEngine;
public function __construct(PropertyBookingEngine $propertyBookingEngine)
{
parent::__construct();
$this->propertyBookingEngine = $propertyBookingEngine;
$this->defaultModel = $this->propertyBookingEngine;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyBookingEngine;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyBookingEngineSearch;
class PropertyBookingEngineSearchRepository extends EleqouentAbstractRepository
{
private $propertyBookingEngineSearch;
public function __construct(PropertyBookingEngineSearch $propertyBookingEngineSearch)
{
parent::__construct();
$this->propertyBookingEngineSearch = $propertyBookingEngineSearch;
$this->defaultModel = $this->propertyBookingEngineSearch;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyBookingPaymentType;
use App\Models\PropertyBookingPaymentType;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyBookingPaymentTypeRepository extends EleqouentAbstractRepository
{
private $propertyBookingPaymentType;
public function __construct(PropertyBookingPaymentType $propertyBookingPaymentType)
{
parent::__construct();
$this->propertyBookingPaymentType = $propertyBookingPaymentType;
$this->defaultModel = $this->propertyBookingPaymentType;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyBookingType;
use App\Models\PropertyBookingType;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyBookingTypeRepository extends EleqouentAbstractRepository
{
private $propertyBookingType;
public function __construct(PropertyBookingType $propertyBookingType)
{
parent::__construct();
$this->propertyBookingType = $propertyBookingType;
$this->defaultModel = $this->propertyBookingType;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyBrand;
use App\Models\PropertyBrand;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyBrandRepository extends EleqouentAbstractRepository
{
private $propertyBrand;
public function __construct(PropertyBrand $propertyBrand)
{
parent::__construct();
$this->propertyBrand = $propertyBrand;
$this->defaultModel = $this->propertyBrand;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyCancellationPolicy;
use App\Models\PropertyCancellationPolicy;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyCancellationPolicyRepository extends EleqouentAbstractRepository
{
private $propertyCancellationPolicy;
public function __construct(PropertyCancellationPolicy $propertyCancellationPolicy)
{
parent::__construct();
$this->propertyCancellationPolicy = $propertyCancellationPolicy;
$this->defaultModel = $this->propertyCancellationPolicy;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\PropertyChain;
use App\Models\PropertyChain;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChainRepository extends EleqouentAbstractRepository
{
private $propertyChain;
public function __construct(PropertyChain $propertyChain)
{
parent::__construct();
$this->propertyChain = $propertyChain;
$this->defaultModel = $this->propertyChain;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannel;
use App\Models\PropertyChannelContact;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelContactRepository extends EleqouentAbstractRepository
{
private $propertyChannelContact;
public function __construct(PropertyChannelContact $propertyChannelContact)
{
parent::__construct();
$this->propertyChannelContact = $propertyChannelContact;
$this->defaultModel = $this->propertyChannelContact;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannel;
use App\Models\PropertyChannel;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelRepository extends EleqouentAbstractRepository
{
private $propertyChannel;
public function __construct(PropertyChannel $propertyChannel)
{
parent::__construct();
$this->propertyChannel = $propertyChannel;
$this->defaultModel = $this->propertyChannel;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannel;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyChannelTax;
class PropertyChannelTaxRepository extends EleqouentAbstractRepository
{
private $propertyChannelTax;
public function __construct(PropertyChannelTax $propertyChannelTax)
{
parent::__construct();
$this->propertyChannelTax = $propertyChannelTax;
$this->defaultModel = $this->propertyChannelTax;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelBookingPaymentSetup;
use App\Models\PropertyChannelBookingPaymentSetup;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelBookingPaymentSetupRepository extends EleqouentAbstractRepository
{
private $propertyChannelBookingPaymentSetup;
public function __construct(PropertyChannelBookingPaymentSetup $propertyChannelBookingPaymentSetup)
{
parent::__construct();
$this->propertyChannelBookingPaymentSetup = $propertyChannelBookingPaymentSetup;
$this->defaultModel = $this->propertyChannelBookingPaymentSetup;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelCategory;
use App\Models\PropertyChannelCategory;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelCategoryRepository extends EleqouentAbstractRepository
{
private $propertyChannelCategory;
public function __construct(PropertyChannelCategory $propertyChannelCategory)
{
parent::__construct();
$this->propertyChannelCategory = $propertyChannelCategory;
$this->defaultModel = $this->propertyChannelCategory;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelGroup;
use App\Models\PropertyChannelGroupChannelMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelGroupChannelMappingRepository extends EleqouentAbstractRepository
{
private $propertyChannelGroupChannelMapping;
public function __construct(PropertyChannelGroupChannelMapping $propertyChannelGroupChannelMapping)
{
parent::__construct();
$this->propertyChannelGroupChannelMapping = $propertyChannelGroupChannelMapping;
$this->defaultModel = $this->propertyChannelGroupChannelMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelGroup;
use App\Models\PropertyChannelGroup;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelGroupRepository extends EleqouentAbstractRepository
{
private $propertyChannelGroup;
public function __construct(PropertyChannelGroup $propertyChannelGroup)
{
parent::__construct();
$this->propertyChannelGroup = $propertyChannelGroup;
$this->defaultModel = $this->propertyChannelGroup;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelMapping;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyChannelMapping;
class PropertyChannelMappingRepository extends EleqouentAbstractRepository
{
private $userPropertyMapping;
public function __construct(PropertyChannelMapping $userPropertyMapping)
{
parent::__construct();
$this->userPropertyMapping = $userPropertyMapping;
$this->defaultModel = $this->userPropertyMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelRoomRateCancellationPolicyMapping;
use App\Models\PropertyChannelRoomRateCancellationPolicyMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelRoomRateCancellationPolicyMappingRepository extends EleqouentAbstractRepository
{
private $propertyChannelRoomRateCancellationPolicyMapping;
public function __construct(PropertyChannelRoomRateCancellationPolicyMapping $propertyChannelRoomRateCancellationPolicyMapping)
{
parent::__construct();
$this->propertyChannelRoomRateCancellationPolicyMapping = $propertyChannelRoomRateCancellationPolicyMapping;
$this->defaultModel = $this->propertyChannelRoomRateCancellationPolicyMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelRoomRatePricingPolicyAdultMapping;
use App\Models\PropertyChannelRoomRatePricingPolicyAdultMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelRoomRatePricingPolicyAdultMappingRepository extends EleqouentAbstractRepository
{
private $propertyChannelRoomRatePricingPolicyAdultMapping;
public function __construct(PropertyChannelRoomRatePricingPolicyAdultMapping $propertyChannelRoomRatePricingPolicyAdultMapping)
{
parent::__construct();
$this->propertyChannelRoomRatePricingPolicyAdultMapping = $propertyChannelRoomRatePricingPolicyAdultMapping;
$this->defaultModel = $this->propertyChannelRoomRatePricingPolicyAdultMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyChannelRoomRatePricingPolicyChildMapping;
use App\Models\PropertyChannelRoomRatePricingPolicyChildMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyChannelRoomRatePricingPolicyChildMappingRepository extends EleqouentAbstractRepository
{
private $propertyChannelRoomRatePricingPolicyChildMapping;
public function __construct(PropertyChannelRoomRatePricingPolicyChildMapping $propertyChannelRoomRatePricingPolicyChildMapping)
{
parent::__construct();
$this->propertyChannelRoomRatePricingPolicyChildMapping = $propertyChannelRoomRatePricingPolicyChildMapping;
$this->defaultModel = $this->propertyChannelRoomRatePricingPolicyChildMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyCompetitorGroup;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyCompetitorGroup;
class PropertyCompetitorGroupRepository extends EleqouentAbstractRepository
{
private $model;
public function __construct(PropertyCompetitorGroup $model)
{
parent::__construct();
$this->model = $model;
$this->defaultModel = $this->model;
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Core\Repository\PropertyCompetitorGroupMapping;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyCompetitorGroupMapping;
class PropertyCompetitorGroupMappingRepository extends EleqouentAbstractRepository
{
private $model;
public function __construct(PropertyCompetitorGroupMapping $model)
{
parent::__construct();
$this->model = $model;
$this->defaultModel = $this->model;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyCompetitorMapping;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyCompetitorMapping;
class PropertyCompetitorMappingRepository extends EleqouentAbstractRepository
{
private $model;
public function __construct(PropertyCompetitorMapping $model)
{
parent::__construct();
$this->model = $model;
$this->defaultModel = $this->model;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyConfig;
use App\Models\PropertyConfig;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyConfigRepository extends EleqouentAbstractRepository
{
private $propertyConfig;
public function __construct(PropertyConfig $propertyConfig)
{
parent::__construct();
$this->propertyConfig = $propertyConfig;
$this->defaultModel = $this->propertyConfig;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyContact;
use App\Models\PropertyContact;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyContactRepository extends EleqouentAbstractRepository
{
private $propertyContact;
public function __construct(PropertyContact $propertyContact)
{
parent::__construct();
$this->propertyContact = $propertyContact;
$this->defaultModel = $this->propertyContact;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyContent;
use App\Models\PropertyContent;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyContentRepository extends EleqouentAbstractRepository
{
private $propertyContent;
public function __construct(PropertyContent $propertyContent)
{
parent::__construct();
$this->propertyContent = $propertyContent;
$this->defaultModel = $this->propertyContent;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyContentCategory;
use App\Models\PropertyContentCategory;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyContentCategoryRepository extends EleqouentAbstractRepository
{
private $propertyContentCategory;
public function __construct(PropertyContentCategory $propertyContentCategory)
{
parent::__construct();
$this->propertyContentCategory = $propertyContentCategory;
$this->defaultModel = $this->propertyContentCategory;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyExecutive;
use App\Models\PropertyExecutive;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyExecutiveRepository extends EleqouentAbstractRepository
{
private $propertyExecutive;
public function __construct(PropertyExecutive $propertyExecutive)
{
parent::__construct();
$this->propertyExecutive = $propertyExecutive;
$this->defaultModel = $this->propertyExecutive;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyExecutiveType;
use App\Models\PropertyExecutiveType;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyExecutiveTypeRepository extends EleqouentAbstractRepository
{
private $propertyExecutiveType;
public function __construct(PropertyExecutiveType $propertyExecutiveType)
{
parent::__construct();
$this->propertyExecutiveType = $propertyExecutiveType;
$this->defaultModel = $this->propertyExecutiveType;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyFact;
use App\Models\PropertyFact;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyFactRepository extends EleqouentAbstractRepository
{
private $propertyFact;
public function __construct(PropertyFact $propertyFact)
{
parent::__construct();
$this->propertyFact = $propertyFact;
$this->defaultModel = $this->propertyFact;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyFactAttribute;
use App\Models\PropertyFactAttribute;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyFactAttributeRepository extends EleqouentAbstractRepository
{
private $propertyFactAttribute;
public function __construct(PropertyFactAttribute $propertyFactAttribute)
{
parent::__construct();
$this->propertyFactAttribute = $propertyFactAttribute;
$this->defaultModel = $this->propertyFactAttribute;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyFactMapping;
use App\Models\PropertyFactMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyFactMappingRepository extends EleqouentAbstractRepository
{
private $propertyFactMapping;
public function __construct(PropertyFactMapping $propertyFactMapping)
{
parent::__construct();
$this->propertyFactMapping = $propertyFactMapping;
$this->defaultModel = $this->propertyFactMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyGroup;
use App\Models\PropertyGroup;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyGroupRepository extends EleqouentAbstractRepository
{
private $propertyGroup;
public function __construct(PropertyGroup $propertyGroup)
{
parent::__construct();
$this->propertyGroup = $propertyGroup;
$this->defaultModel = $this->propertyGroup;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyGroupMapping;
use App\Models\PropertyGroupMapping;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyGroupMappingRepository extends EleqouentAbstractRepository
{
private $propertyGroupMapping;
public function __construct(PropertyGroupMapping $propertyGroupMapping)
{
parent::__construct();
$this->propertyGroupMapping = $propertyGroupMapping;
$this->defaultModel = $this->propertyGroupMapping;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyInvoice;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyInvoice;
class PropertyInvoiceRepository extends EleqouentAbstractRepository
{
private $model;
public function __construct(PropertyInvoice $model)
{
parent::__construct();
$this->model = $model;
$this->defaultModel = $this->model;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core\Repository\PropertyLanguageSpoken;
use App\Core\Repository\EleqouentAbstractRepository;
use App\Models\PropertyLanguageSpoken;
class PropertyLanguageSpokenRepository extends EleqouentAbstractRepository
{
private $PropertyLanguageSpoken;
public function __construct(PropertyLanguageSpoken $PropertyLanguageSpoken)
{
parent::__construct();
$this->PropertyLanguageSpoken = $PropertyLanguageSpoken;
$this->defaultModel = $this->PropertyLanguageSpoken;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core\Repository\PropertyModule;
use App\Models\PropertyModule;
use App\Core\Repository\EleqouentAbstractRepository;
class PropertyModuleRepository extends EleqouentAbstractRepository
{
private $propertyModule;
public function __construct(PropertyModule $propertyModule)
{
parent::__construct();
$this->propertyModule = $propertyModule;
$this->defaultModel = $this->propertyModule;
}
}

Some files were not shown because too many files have changed in this diff Show More