update 2025-06-02
This commit is contained in:
@@ -17,12 +17,12 @@ class GoogleSheetController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data = $this->googleSheetService->getSheetData("Sheet1!A2:BB2");
|
||||
$dataCollection = $this->googleSheetService->getSheetDataCollection();
|
||||
$result = [
|
||||
"data" => $data,
|
||||
"last_row" => $this->googleSheetService->getLastRow("Sheet1"),
|
||||
"header" => $this->googleSheetService->getHeader("Sheet1"),
|
||||
"last_column" => $this->googleSheetService->getLastColumn("Sheet1")
|
||||
"last_row" => $this->googleSheetService->getLastRowByColumn("C"),
|
||||
"last_column" => $this->googleSheetService->getLastColumn(),
|
||||
"header" => $this->googleSheetService->getHeader(),
|
||||
"data_collection" => $dataCollection
|
||||
];
|
||||
return response()->json($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user