/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $user = Auth::user();
     $conversations = Conversation::forUser()->orderBy('updated_at', 'desc')->get();
     $conversation = Conversation::find($id);
     // $me = Participant::me()->where('conversation_id', $conversation->id)->first();
     // $me->last_read = new DateTime;
     // $me->save();
     return View::make('conversations.show', compact('conversations', 'conversation'));
 }
Example #2
0
 public function postcvUpdate()
 {
     $user = \Auth::user()->id;
     $cv = Cv::find($user);
     $cv->cv_title = \Input::get('cv_title');
     $cv->cv_summary = \Input::get('cv_summary');
     $cv->save();
     # return \View::make('cv.view')->with('cv',$cv);
     return \Redirect::to('user/settings');
 }