public function delete(Request $request)
    {
        abort_unless($request->ajax(), 405, 'Method Not Allowed');

        $date = $request->get('date');

        return response()->json([
            'result' => $this->logViewer->delete($date) ? 'success' : 'error'
        ]);
    }
public function delete(Request $request)
    {
        abort_unless($request->ajax(), 405, 'Method Not Allowed');

        $date = $request->get('date');

        return response()->json([
            'result' => $this->logViewer->delete($date) ? 'success' : 'error'
        ]);
    }
public function delete ( Request $ request ) { abort_unless ( $ request -> ajax ( ) , 405 , 'Method Not Allowed' ) ; $ date = $ request -> get ( 'date' ) ; return response ( ) -> json ( [ 'result' => $ this -> logViewer -> delete ( $ date ) ? 'success' : 'error' ] ) ; }
Delete a log.

@param  \Illuminate\Http\Request  $request

@return \Illuminate\Http\JsonResponse
Delete a log .