src/Controllers/BaseController.php
public function ajaxGetVisits()
    {
        $data = Base::getVisitsRepository()->orderBy('created_at', 'desc')->take(300)->get(['url', 'browser', 'ip', 'created_at', 'country']);

        return \Response::json(array('data' => $data));
    }
public function ajaxGetVisits()
    {
        $data = Base::getVisitsRepository()->orderBy('created_at', 'desc')->take(300)->get(['url', 'browser', 'ip', 'created_at', 'country']);

        return \Response::json(array('data' => $data));
    }
public function ajaxGetVisits ( ) { $ data = Base :: getVisitsRepository ( ) -> orderBy ( 'created_at' , 'desc' ) -> take ( 300 ) -> get ( [ 'url' , 'browser' , 'ip' , 'created_at' , 'country' ] ) ; return \ Response :: json ( array ( 'data' => $ data ) ) ; }
Ajax call to get all the visits

@return View
Ajax call to get all the visits