You've already forked isop-mirror
feat: add student deletion functionality with confirmation dialog
This commit is contained in:
@@ -25,4 +25,12 @@ class Internship extends Model
|
||||
'position_description',
|
||||
'agreement',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the statuses for the internship.
|
||||
*/
|
||||
public function statuses()
|
||||
{
|
||||
return $this->hasMany(InternshipStatus::class, 'internship_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,4 +57,12 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->hasOne(StudentData::class, 'user_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the internships for the user.
|
||||
*/
|
||||
public function internships()
|
||||
{
|
||||
return $this->hasMany(Internship::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user