'datetime', 'end_date' => 'datetime', 'number_of_participants' => 'integer', 'num_days' => 'integer' ]; /** * Get the department that owns the activity. */ public function department() { return $this->belongsTo(Department::class); } /** * Get the faculty user that owns the activity. */ public function user() { return $this->belongsTo(User::class, 'faculty_id'); } }