public function EditResume() { if (Auth::check()) { $user = Auth::user(); $id = $user->id; $resume = User::find($id)->resume()->first(); if (!is_null($resume)) { $project = Resume::find($id)->userproject()->get(); } $skills = Skill::lists('skill'); $professions = Profession::lists('profession'); return View::make('register.resumes', compact('user', 'resume', 'project', 'skills', 'professions')); } else { return Redirect::guest('ow_login'); } }