diff options
author | Camil Staps | 2016-09-06 00:28:21 +0200 |
---|---|---|
committer | Camil Staps | 2016-09-06 00:28:21 +0200 |
commit | b9c709fc55e07ca085b0397844aa13d5d53f6964 (patch) | |
tree | 40bfb217476e3ce99f36acc4e2f2433b9a675c1a /app | |
parent | Different root kinds instead of only strong/weak (diff) |
Root kinds on trainer page
Diffstat (limited to 'app')
-rw-r--r-- | app/Root.php | 10 |
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'); + } } |