public function search()
 {
     if (!Request::ajax()) {
         return Redirect::to('/');
     }
     $q = Request::input('q');
     $results = Logg::search($q);
     return view('ajax/search', ['results' => $results]);
 }
 public function deleteDate()
 {
     $deleteDate = Request::input('delete_date');
     Logg::deleteLogs($deleteDate);
     return Redirect::to('/');
 }