Demo site
https://docs.google.com/spreadsheets/d/1SUNw7QzAMx-xXUwr5s-mJrZC9NGFRl4RqyzSL6CogkQ/edit?usp=sharing
https://github.com/invokable/laravel-google-sheets
The current implementation is a sample code for service account authentication using Laravel 12 and Livewire Starter Kit with standard components (non-Volt).
- Laravel 12 with Livewire 3 (standard components)
- Google Sheets API integration using service account authentication
- Simple form to add entries to Google Sheets
- Real-time display of recent entries
- No user authentication required
- Uses Livewire Starter Kit with traditional PHP class components (non-Volt)
| Branch | Laravel | Starter Kit | Google API Authentication Method |
|---|---|---|---|
| 5.5 | Laravel 5.5 | Legacy make:auth |
OAuth with Socialite |
| 5.8 | Laravel 5.8 | Legacy make:auth |
OAuth with Socialite |
| 6.x | Laravel 6 | Legacy make:auth |
OAuth with Socialite |
| 8.x | Laravel 8 | Breeze, Livewire | Service account |
| 11.x | Laravel 11 | Breeze, Livewire | Service account |
| 12.x-breeze | Laravel 12 | Breeze, Livewire | Service account |
main |
Laravel 12 | Livewire Starter Kit (standard components) | Service account |
This project uses Laravel 12 with Livewire 3 in the standard component format (not Volt). The Livewire components are traditional PHP classes that extend the base Component class:
app/Livewire/Sheets/Form.php- Handles the form for adding entries to Google Sheetsapp/Livewire/Sheets/Posts.php- Displays recent entries from Google Sheets
The project uses Livewire Starter Kit with Flux UI components for the frontend, providing a modern and reactive user interface without requiring Volt's functional component syntax.
- Copy
.env.exampleto.envand configure your environment variables - Set up Google Sheets API credentials and service account authentication
- Configure the
POST_SPREADSHEET_IDandPOST_SHEET_IDenvironment variables - Run
composer installandnpm install - Generate application key with
php artisan key:generate