public function createSkill()
 {
     $logged_user_id = Auth::user()->id;
     $user_info = UserInfo::find($logged_user_id);
     $user = user::find($user_info->user_id);
     $freelancer_info = FreelancerInfo::where('user_info_id', '=', $logged_user_id)->get();
     return View::make('skillForm')->with('freelancer_info', $freelancer_info);
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     // load the create form (app/views/nerds/create.blade.php)
     $id = Auth::user()->id;
     $category = Category::all();
     if (FreelancerInfo::where('user_info_id', '=', $id)->exists()) {
         return View('job.create')->with('category', $category);
     } else {
         $newFreelancerInfo = new FreelancerInfo();
         $newFreelancerInfo->user_info_id = $id;
         $newFreelancerInfo->available = true;
         $newFreelancerInfo->save();
         return View('job.create')->with('category', $category);
     }
 }