|
...
|
...
|
@@ -147,7 +147,7 @@ class CountLogic extends BaseLogic |
|
|
|
public function referrer_count(){
|
|
|
|
$customerVisitModel = new Visit();
|
|
|
|
$data = $customerVisitModel->select('referrer_url', DB::raw('COUNT(*) as count'))
|
|
|
|
->groupBy('referrer_url')->where(['domain'=>trim(str_replace('https://','',$this->user['domain']),'/')]);
|
|
|
|
->groupBy('referrer_url')->where(['domain'=>trim(str_replace('https://','',$this->user['domain']),'/')])
|
|
|
|
->orderByDesc('count')->limit(9)->get()->toArray();
|
|
|
|
$total = $customerVisitModel->count();
|
|
|
|
if(!empty($data)){
|
...
|
...
|
|