Add: New Fields for the form
This commit is contained in:
@@ -11,14 +11,25 @@ class Response extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'activity_type',
|
||||
'organising_institute',
|
||||
'address',
|
||||
'department_id',
|
||||
'faculty_id',
|
||||
'start_date',
|
||||
'end_date',
|
||||
'num_days',
|
||||
'activity_type',
|
||||
'category',
|
||||
'level',
|
||||
'proof',
|
||||
'faculty_id',
|
||||
];
|
||||
|
||||
|
||||
// Define the relationship to the User (Faculty)
|
||||
public function department()
|
||||
{
|
||||
return $this->belongsTo(Department::class, 'department_id');
|
||||
}
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'faculty_id');
|
||||
|
||||
Reference in New Issue
Block a user