feat: implement company deletion functionality with confirmation dialog

This commit is contained in:
dkecskes
2025-11-03 19:37:04 +01:00
parent 3ff12fe57e
commit 1973ab6b7f
5 changed files with 274 additions and 2 deletions

View File

@@ -22,4 +22,20 @@ class Company extends Model
'contact',
'hiring'
];
/**
* Get the internships for the company.
*/
public function internships()
{
return $this->hasMany(Internship::class, 'company_id');
}
/**
* Get the contact person (user) for the company.
*/
public function contactPerson()
{
return $this->belongsTo(User::class, 'contact');
}
}