Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Administrator
geo-admin
Commits
e5aad59b
Commit
e5aad59b
authored
3 years ago
by
Evgenii Burikov
Browse files
Options
Download
Email Patches
Plain Diff
all layers v9
parent
61104b83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Models/Region.php
+5
-0
src/Models/Region.php
with
5 additions
and
0 deletions
+5
-0
src/Models/Region.php
View file @
e5aad59b
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help