modified assests
This commit is contained in:
@@ -13,7 +13,7 @@ class Organism extends BaseModel
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $fillable = ['name_en', 'weight', 'is_bold', 'lab_id'];
|
||||
protected $fillable = ['name_en', 'weight', 'is_bold', 'organization_id'];
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
@@ -21,7 +21,7 @@ class Organism extends BaseModel
|
||||
}
|
||||
|
||||
public function lab(){
|
||||
return $this->belongsTo('App\Models\Laboratory', 'lab_id','id');
|
||||
return $this->belongsTo('App\Models\Organization', 'organization_id','id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user