/** * Display a listing of the resource. * * @return Response */ public function index() { $examTypes = ExamType::all(); return view('dashboard.admin.exam-type.index', ['examType' => $examTypes]); }
public function index() { $examType = ExamType::all()->toArray(); return $examType; }