Structor CSSD

This commit is contained in:
saeid
2019-04-25 20:14:09 +04:30
parent fc162db99b
commit 14a91bdef7
72 changed files with 6957 additions and 4636 deletions
+3 -2
View File
@@ -6,7 +6,8 @@ use Illuminate\Database\Eloquent\Model;
class TestResult extends Model
{
public function testtype()
public $fillable = ['result','verified','autoclave_id','test_type_id','user_id'];
public function test_type()
{
return $this->belongsTo('App\TestType');
}
@@ -14,7 +15,7 @@ class TestResult extends Model
{
return $this->belongsTo('App\User');
}
public function inputvalues()
public function input_values()
{
return $this->hasMany('App\InputValue');
}