add dropzone to test result form

This commit is contained in:
Fateme
2020-06-09 18:05:16 +04:30
parent 7496f1213f
commit a74e49af6f
14 changed files with 269 additions and 125 deletions
+4
View File
@@ -19,6 +19,10 @@ class TestResult extends Model
{
return $this->hasMany('App\InputValue');
}
public function images()
{
return $this->morphMany('App\Media', 'model');
}
public function TitleImage()
{
return $this->morphToMany('App\Gallery', 'uploadable')->wherePivot('image_role', 'TitleImage');