Add: New Fields for the form

This commit is contained in:
Sallu9007
2025-01-27 01:05:01 +05:30
parent beb4adfaef
commit 5e04bf4afc
6 changed files with 326 additions and 80 deletions

View File

@@ -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');