public function update(Request $request, $id)
    {
        $notification = History::findOrFail($id);

        $notification->acknowledged = true;
        $notification->save();

        return redirect(route('eyewitness.dashboard').'#notifications')->withSuccess('The notification has been acknowledged.');
    }
public function update(Request $request, $id)
    {
        $notification = History::findOrFail($id);

        $notification->acknowledged = true;
        $notification->save();

        return redirect(route('eyewitness.dashboard').'#notifications')->withSuccess('The notification has been acknowledged.');
    }
public function update ( Request $ request , $ id ) { $ notification = History :: findOrFail ( $ id ) ; $ notification -> acknowledged = true ; $ notification -> save ( ) ; return redirect ( route ( 'eyewitness.dashboard' ) . '#notifications' ) -> withSuccess ( 'The notification has been acknowledged.' ) ; }
Acknowledge the given notification.

@param  Request  $request
@param  integer  $id
@return \Illuminate\Http\Response
Acknowledge the given notification .