Laravel.io
   public function postByProduct()
    {
        $startDate = Input::get('startDate',date('Y/m/d 00:00:00',strtotime('-1month')));
        $stopDate  = Input::get('stopDate',date('Y/m/d'));

        $startDate = Carbon::parse($startDate);
        $stopDate  = Carbon::parse($stopDate . '23:59:59');

        $orders   = $this->orderRepository->reportByProductCompletedOrders($startDate, $stopDate);
        $response = $this->phpExcelService->generateProductsByStoreSpreadsheet($orders, $startDate, $stopDate);
        
        return;
    }

Please note that all pasted data is publicly available.