public function intakes_dropdown() { $year = Input::get('option'); return ApplicationIntake::where('year', '=', $year)->lists('name', 'id'); // return DB::table('application_intakes')->select('name','id')->where('year','=',$year)->get(); }