This commit is contained in:
saeid
2019-05-08 17:46:30 +04:30
parent f6d7277ddc
commit 940a1b01ab
15 changed files with 823 additions and 378 deletions
+4
View File
@@ -19,4 +19,8 @@ class TestResult extends Model
{
return $this->hasMany('App\InputValue');
}
public function TitleImage()
{
return $this->morphToMany('App\Gallery', 'uploadable')->wherePivot('image_role', 'TitleImage');
}
}