update 2025-06-02

This commit is contained in:
arifal
2025-02-06 04:55:30 +07:00
parent 4eac6ab83d
commit d54edb7783
23 changed files with 1354 additions and 684 deletions

View File

@@ -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);
}