src/Dashboard/Panels/GoogleAnalyticsPanel.php
protected function fakeData($period)
    {
        $data = collect([]);

        for ($date = Carbon::parse($period->startDate); $date->lte($period->endDate); $date->addDay()) {
            $data->push([
                'date' => Carbon::parse($date),
                'visitors' => rand(100, 1000),
                'pageViews' => rand(100, 1000),
            ]);
        }

        return $data;
    }
protected function fakeData($period)
    {
        $data = collect([]);

        for ($date = Carbon::parse($period->startDate); $date->lte($period->endDate); $date->addDay()) {
            $data->push([
                'date' => Carbon::parse($date),
                'visitors' => rand(100, 1000),
                'pageViews' => rand(100, 1000),
            ]);
        }

        return $data;
    }
protected function fakeData ( $ period ) { $ data = collect ( [ ] ) ; for ( $ date = Carbon :: parse ( $ period -> startDate ) ; $ date -> lte ( $ period -> endDate ) ; $ date -> addDay ( ) ) { $ data -> push ( [ 'date' => Carbon :: parse ( $ date ) , 'visitors' => rand ( 100 , 1000 ) , 'pageViews' => rand ( 100 , 1000 ) , ] ) ; } return $ data ; }
Provide fake analytics data for demo purposes.

@param $period

@return \Illuminate\Support\Collection
Provide fake analytics data for demo purposes .