aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorCamil Staps2016-09-06 00:28:21 +0200
committerCamil Staps2016-09-06 00:28:21 +0200
commitb9c709fc55e07ca085b0397844aa13d5d53f6964 (patch)
tree40bfb217476e3ce99f36acc4e2f2433b9a675c1a /app
parentDifferent root kinds instead of only strong/weak (diff)
Root kinds on trainer page
Diffstat (limited to 'app')
-rw-r--r--app/Root.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/Root.php b/app/Root.php
index 6c0f033..2e21c4e 100644
--- a/app/Root.php
+++ b/app/Root.php
@@ -22,8 +22,12 @@ use Illuminate\Database\Eloquent\Model;
class Root extends Model {
- protected $table = 'roots';
- public $timestamps = false;
- protected $fillable = ['root', 'root_kind_id'];
+ protected $table = 'roots';
+ public $timestamps = false;
+ protected $fillable = ['root', 'root_kind_id'];
+
+ public function kind() {
+ return $this->belongsTo('HebrewParseTrainer\RootKind', 'root_kind_id');
+ }
}