mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
add repo
This commit is contained in:
parent
508e0ab15d
commit
3f22510051
@ -13,6 +13,7 @@ use Visiosoft\LocationModule\Country\CountryModel;
|
|||||||
use Visiosoft\CartsModule\Cart\Command\GetCart;
|
use Visiosoft\CartsModule\Cart\Command\GetCart;
|
||||||
use Visiosoft\LocationModule\District\DistrictModel;
|
use Visiosoft\LocationModule\District\DistrictModel;
|
||||||
use Visiosoft\LocationModule\Neighborhood\NeighborhoodModel;
|
use Visiosoft\LocationModule\Neighborhood\NeighborhoodModel;
|
||||||
|
use Visiosoft\LocationModule\Village\Contract\VillageRepositoryInterface;
|
||||||
use Visiosoft\LocationModule\Village\VillageModel;
|
use Visiosoft\LocationModule\Village\VillageModel;
|
||||||
|
|
||||||
class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||||
@ -376,8 +377,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
|
|
||||||
public function getVillage()
|
public function getVillage()
|
||||||
{
|
{
|
||||||
$villageModel = new VillageModel();
|
$village = app(VillageRepositoryInterface::class)->find($this->village);
|
||||||
$village = $villageModel->newQuery()->find($this->village);
|
|
||||||
return $village ? $village->name : false;
|
return $village ? $village->name : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user