From 5afa185ae5b4a14903fc415d9056c81678734fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20L=C3=BDsek?= Date: Wed, 22 Feb 2017 16:10:50 +0100 Subject: [PATCH] modely --- app/Models/Location.php | 15 +++++++++++++++ app/Models/Person.php | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 app/Models/Location.php create mode 100644 app/Models/Person.php diff --git a/app/Models/Location.php b/app/Models/Location.php new file mode 100644 index 0000000..90eacf1 --- /dev/null +++ b/app/Models/Location.php @@ -0,0 +1,15 @@ +hasMany('App\Models\Person', 'id_location'); + } + +} diff --git a/app/Models/Person.php b/app/Models/Person.php new file mode 100644 index 0000000..9860049 --- /dev/null +++ b/app/Models/Person.php @@ -0,0 +1,17 @@ +belongsTo('App\Models\Location', 'id_location'); + } + +}