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
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Geo\State\Classes;
use ORM\Entity as Entity;
use App\Geo\Country\Classes\Country as Country;
class State extends Entity {
const _tableName = "geo_states";
//const _timestamps = true;
//const _softdelete = true;
//const _connectionName = "";
function country(){
return $this->belongsTo(Country::class, 'country_id');
}
}