public function loadCareerProfileTypeUser()
 {
     $career = Career::all();
     $profile = Profile::all();
     $typeProfile = Type_user::all();
     return view('create', array('carrer' => $career, 'profile' => $profile, 'typeProfile' => $typeProfile));
 }
Ejemplo n.º 2
0
 public function careerJson()
 {
     $return_array = array();
     $career = Career::all();
     foreach ($career as $career) {
         $data_array['id'] = $career->id;
         $data_array['title'] = $career->title;
         $data_array['years'] = $career->years;
         $data_array['jobdesk'] = $career->jobdesk;
         $data_array['description'] = $career->description;
         array_push($return_array, $data_array);
     }
     echo json_encode($return_array);
 }