public function read($id)
    {
        $thread = Thread::find($id);
        if (!$thread) {
            abort(404);
        }

        $thread->markAsRead(Auth::id());
    }
public function read($id)
    {
        $thread = Thread::find($id);
        if (!$thread) {
            abort(404);
        }

        $thread->markAsRead(Auth::id());
    }
public function read ( $ id ) { $ thread = Thread :: find ( $ id ) ; if ( ! $ thread ) { abort ( 404 ) ; } $ thread -> markAsRead ( Auth :: id ( ) ) ; }
Mark a specific thread as read, for ajax use.

@param $id
Mark a specific thread as read for ajax use .