public static function interval($startDate, $endDate){

        $hits = DB::table('views')->select('id', 'ip', 'created_at')->whereBetween('created_at', [$startDate, $endDate])->groupBy('ip')->get();

        return count($hits);
    }