most sites visited by ip address laravel

64

$viewed = Session::get('viewed_pages', []);
        if(!in_array($page->id, $viewed)){
            $page->increment('views');
            Session::push('viewed_pages', $page->id);
        }

Comments

Submit
0 Comments