Installation
Require the package. The service provider and the GooglePlaces facade alias are auto-discovered — no manual registration and no migrations:
composer require roundly-consulting/google-places-for-laravelAdd your Google Maps Platform key to .env. In the Google Cloud console, enable the Places API (New), the Routes API and the Geocoding API for that key:
GOOGLE_PLACES_API_KEY=your-google-maps-api-keyThat’s all the configuration the package needs. The config file is optional — publish it only to trim field masks or tune timeouts, caching, logging and rate limits:
php artisan vendor:publish --tag="google-places-config"Verify the key
Run the preflight check to confirm the key works and each of the three Google APIs is enabled and reachable. The key is redacted in the output:
php artisan google-places:checkShow your open-source love
This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.
More ways to support, including cryptoBy donating, you agree to our donation terms.
Want this built into your product?
We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.