src/Http/Controllers/LogViewerController.php
public function getDelete($date)
    {
        try {
            LogViewer::delete($date);
            $today = Carbon::today()->format('Y-m-d');

            return Redirect::to('logviewer/'.$today.'/all')
                ->with('success', 'Log deleted successfully!');
        } catch (\Exception $e) {
            return Redirect::to('logviewer/'.$date.'/all')
                ->with('error', 'There was an error while deleting the log.');
        }
    }
public function getDelete($date)
    {
        try {
            LogViewer::delete($date);
            $today = Carbon::today()->format('Y-m-d');

            return Redirect::to('logviewer/'.$today.'/all')
                ->with('success', 'Log deleted successfully!');
        } catch (\Exception $e) {
            return Redirect::to('logviewer/'.$date.'/all')
                ->with('error', 'There was an error while deleting the log.');
        }
    }
public function getDelete ( $ date ) { try { LogViewer :: delete ( $ date ) ; $ today = Carbon :: today ( ) -> format ( 'Y-m-d' ) ; return Redirect :: to ( 'logviewer/' . $ today . '/all' ) -> with ( 'success' , 'Log deleted successfully!' ) ; } catch ( \ Exception $ e ) { return Redirect :: to ( 'logviewer/' . $ date . '/all' ) -> with ( 'error' , 'There was an error while deleting the log.' ) ; } }
Delete the log.

@param string $date

@return \Illuminate\Http\Response
Delete the log .