Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

most sites visited by ip address laravel

$viewed = Session::get('viewed_pages', []);
        if(!in_array($page->id, $viewed)){
            $page->increment('views');
            Session::push('viewed_pages', $page->id);
        }
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #sites #visited #ip #address #laravel
ADD COMMENT
Topic
Name
2+2 =