'datetime', 'end_date' => 'datetime', 'num_days' => 'integer', 'is_peer_reviewed' => 'string' ]; /** * Get the department that owns the publication. */ public function department() { return $this->belongsTo(Department::class); } /** * Get the faculty user that owns the publication. */ public function user() { return $this->belongsTo(User::class, 'faculty_id'); } /** * Check if the publication is Scopus indexed. */ public function isScopusIndexed() { return !is_null($this->scopus_link); } /** * Check if the publication is SCI indexed. */ public function isSciIndexed() { return !is_null($this->sci_link); } }