public function getMessages($id)
 {
     if (Auth::id() != $id) {
         $thread = Thread::between([Auth::id(), $id])->first();
         $thread->markAsRead(Auth::id());
         return $thread->messages()->where('created_at', '>', Input::get('last'))->with('user')->with('participants')->get();
     } else {
         return redirect('messages');
     }
 }