コード例 #1
0
 /**
  * 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'));
 }