public function exitslot() { $exit = \DB::Select('select * from slots'); $cnt = count($exit); $eslot = $this->id * 2 * 2 + 3; if ($cnt >= $eslot) { return true; } }
function getPrereqs() { $id = $this->id; $preq = DB::Select('Select prereq_id from subject_prereq where subject_id=$id'); }