From bddab363800a226f99ebaa107b4c94f1dbdb691c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:51:30 +0300 Subject: [PATCH] added relationship to app history model --- app/Models/Module/ModuleHistory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Module/ModuleHistory.php b/app/Models/Module/ModuleHistory.php index 124593a5bd4..9cefc835cfb 100644 --- a/app/Models/Module/ModuleHistory.php +++ b/app/Models/Module/ModuleHistory.php @@ -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'); + } }