diff options
| author | Camil Staps | 2016-01-05 19:27:24 +0100 | 
|---|---|---|
| committer | Camil Staps | 2016-01-05 19:29:19 +0100 | 
| commit | 8583f7c119434dccacdb1d6d14136cae3533fa3f (patch) | |
| tree | e1d6f80a80a30166d24c69be8ed4805b8c80b841 /app/Verb.php | |
| parent | Merge branch 'master' of github.com:camilstaps/HebrewParseTrainer (diff) | |
Allow for multiple correct answers
Diffstat (limited to 'app/Verb.php')
| -rw-r--r-- | app/Verb.php | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/app/Verb.php b/app/Verb.php index 75d5d46..997812f 100644 --- a/app/Verb.php +++ b/app/Verb.php @@ -26,4 +26,10 @@ class Verb extends Model {      protected $fillable = ['verb', 'root', 'stem', 'tense', 'person', 'gender', 'number']; +    public function otherParsings() +    { +        return self::where('verb', $this->verb)->get() +            ->filter(function($v){return $v->verb === $this->verb;}); +    } +  }
\ No newline at end of file | 
