A set of plugins to help on managing geographic information

This commit is contained in:
ahwelp
2023-01-24 20:41:37 +00:00
parent 616a97f16c
commit a60cfcec3a
61 changed files with 7895 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Geo\Country\Classes;
use ORM\Entity as Entity;
use App\Geo\State\Classes\State as State;
class Country extends Entity {
const _tableName = "geo_countries";
const _listable = Array(
'id',
'name',
'code',
'iso2',
'iso3',
);
const _orderable = Array(
);
public function states(){
return $this->hasMany(State::class, 'country_id', $this);
}
}