public function destroy($id, VisitLogModel $visitLog)
    {
        $visitLog = $visitLog->find($id);

        if ($visitLog && !$visitLog->delete()) {
            return Redirect::back()->withErrors($visitLog->errors());
        }

        return Redirect::back();
    }
public function destroy($id, VisitLogModel $visitLog)
    {
        $visitLog = $visitLog->find($id);

        if ($visitLog && !$visitLog->delete()) {
            return Redirect::back()->withErrors($visitLog->errors());
        }

        return Redirect::back();
    }
public function destroy ( $ id , VisitLogModel $ visitLog ) { $ visitLog = $ visitLog -> find ( $ id ) ; if ( $ visitLog && ! $ visitLog -> delete ( ) ) { return Redirect :: back ( ) -> withErrors ( $ visitLog -> errors ( ) ) ; } return Redirect :: back ( ) ; }
Deletes a record.

@param $id
@param VisitLogModel $visitLog
@return mixed
Deletes a record .