You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pattern allows you to develop and test the application logic without requiring live API connections.
185
-
186
-
## Glossary of Project-Specific Terms
187
-
188
-
**Service Account** - `config/google.php`
189
-
A Google Cloud service account that provides server-to-server authentication without requiring user interaction. The JSON credentials file contains the private key and client information.
190
-
191
-
**Livewire Component** - `app/Livewire/Sheets/`
192
-
Laravel Livewire components that handle server-side rendering and real-time UI updates. This project uses standard PHP class components, not Volt functional components.
193
-
194
-
**POST_SPREADSHEET_ID** - Environment variable
195
-
The unique identifier of the Google Spreadsheet, extracted from the spreadsheet URL. Format: `1SUNw7QzAMx-xXUwr5s-mJrZC9NGFRl4RqyzSL6CogkQ`
196
-
197
-
**POST_SHEET_ID** - Environment variable
198
-
The name or ID of the specific sheet/tab within the spreadsheet where data will be written. Usually "Sheet1" for new spreadsheets.
Method that retrieves all data from a Google Sheet, used in the Posts component to display recent entries.
220
-
221
-
**collection()** - `Sheets::collection()`
222
-
Helper method that transforms raw spreadsheet data into Laravel Collections with named keys based on header rows.
223
-
224
-
**majorDimension** - Google Sheets API parameter
225
-
Controls whether data is organized by ROWS or COLUMNS. This project uses ROWS (default) for typical table-like data.
226
-
227
-
**spreadsheet()** - Fluent method
228
-
Selects a specific Google Spreadsheet by ID for subsequent operations.
229
-
230
-
**sheet()** - Fluent method
231
-
Selects a specific sheet/tab within the spreadsheet for data operations.
232
-
233
-
**Livewire Starter Kit** - Laravel scaffolding
234
-
Modern Laravel frontend scaffolding that provides authentication, layouts, and component structure using Livewire 3.
235
-
236
-
**dispatch('postAdded')** - Livewire event
237
-
Custom event dispatched when a new post is added, triggering real-time updates in the Posts component.
238
-
239
-
**#[Computed]** - Livewire attribute
240
-
PHP attribute that marks a method as a computed property, automatically cached and updated when dependencies change.
241
-
242
-
**#[On('postAdded')]** - Livewire attribute
243
-
PHP attribute that registers an event listener, causing the method to execute when the specified event is dispatched.
244
-
245
-
**#[Validate]** - Livewire attribute
246
-
PHP attribute that defines validation rules for component properties, automatically validated on form submission.
247
-
248
-
**now()->toDateTimeString()** - Laravel helper
249
-
Carbon method that returns the current timestamp in database-compatible format (Y-m-d H:i:s).
250
-
251
97
## About fakerphp/faker in Production
252
98
253
99
The package `fakerphp/faker` is installed using `require` (not `require-dev`) because it is needed by `app/Console/Commands/ResetCommand.php` to generate random names and sentences when resetting the spreadsheet.
254
100
Although `fakerphp/faker` is typically used for development and testing, its use here is limited to generating dummy data via an artisan command.
255
-
There are no security or performance issues with using it in production for this scenario.
101
+
There are no security or performance issues with using it in production for this scenario.
0 commit comments