Skip to content

Commit

Permalink
added relationship to app history model
Browse files Browse the repository at this point in the history
  • Loading branch information
CihanSenturk committed Aug 24, 2023
1 parent aa1251a commit bddab36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/Module/ModuleHistory.php
Expand Up @@ -14,4 +14,9 @@ class ModuleHistory extends Model
* @var array
*/
protected $fillable = ['company_id', 'module_id', 'version', 'description', 'created_from', 'created_by'];

public function module()
{
return $this->belongsTo('App\Models\Module\Module');
}
}

0 comments on commit bddab36

Please sign in to comment.