Commit e5aad59b authored by Evgenii Burikov's avatar Evgenii Burikov
Browse files

all layers v9

parent 61104b83
Showing with 5 additions and 0 deletions
+5 -0
......@@ -13,4 +13,9 @@ class Region extends Model
// Disable Laravel's mass assignment protection
protected $guarded = [];
protected $geometry = ['boundary'];
public function districts ()
{
return $this->hasMany(District::class, 'region_id');
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment