feat: implement intern blog management system with approval workflows and administrative feedback
This commit is contained in:
@@ -48,6 +48,14 @@ class CareerApplication extends Model
|
||||
return $this->hasMany(InternshipJournalEntry::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the blog posts written by this intern.
|
||||
*/
|
||||
public function blogs()
|
||||
{
|
||||
return $this->hasMany(Blog::class, 'career_application_id');
|
||||
}
|
||||
|
||||
protected static function booted()
|
||||
{
|
||||
static::saving(function ($model) {
|
||||
|
||||
Reference in New Issue
Block a user