From ee3418e6582f670e9f4477c24d6a6513a11f714e Mon Sep 17 00:00:00 2001 From: br0kenpixel <23280129+br0kenpixel@users.noreply.github.com> Date: Mon, 3 Nov 2025 20:44:46 +0100 Subject: [PATCH] feat: add company relationship to `Internship` model --- backend/app/Models/Internship.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/app/Models/Internship.php b/backend/app/Models/Internship.php index 7161233..4974156 100644 --- a/backend/app/Models/Internship.php +++ b/backend/app/Models/Internship.php @@ -39,4 +39,9 @@ class Internship extends Model 'report_confirmed' => 'boolean', ]; } + + public function company() + { + return $this->belongsTo(Company::class, 'company_id'); + } }