- How do I install and configure GServerlessSupportLaravel in a Laravel app?
- Install it with composer require affordablemobiles/g-serverless-support-laravel, then register the package service provider in your application. Configuration is mostly environment driven: point FILESYSTEM_DISK, SESSION_DRIVER, CACHE_DRIVER and LOG_CHANNEL at the package's drivers and adjust the framework storage paths. The bulk of the remaining work sits outside the package, in provisioning the GCS bucket, wiring IAM and adding a build step to your Cloud Build or Docker pipeline.
- Which Laravel and PHP versions does this package support?
- Check the repository's composer.json constraints and README as the source of truth; the package reaches into Laravel internals such as the filesystem manager, session handler and queue connector, so support is tied to specific majors rather than a broad range. Pin the package version alongside the exact Laravel and PHP versions you deploy, and add a CI job that exercises storage, session and cache against that combination. Because the ecosystem validation is thin, do not assume a minor Laravel upgrade is safe without running your own smoke tests.
- Which Google serverless targets does this package support: Cloud Run, App Engine or Cloud Functions?
- It targets the Google serverless environments that break Laravel's local-filesystem and in-process assumptions, which in practice means Cloud Run, App Engine and Cloud Functions. Cloud Run with a containerised, FPM-style deploy is the most natural fit for the build and cache-warmup tooling the package ships. Confirm first-class versus best-effort support for App Engine Flex and Cloud Functions gen1 versus gen2 against the repository before committing to a specific target.
- Why does Laravel need special drivers to run on Google serverless?
- Google serverless containers have a read-only filesystem outside /tmp, and instances are ephemeral and horizontally duplicated with no persistent local disk shared across revisions. Laravel assumes a writable local filesystem, in-process sessions and cache, local log sinks and a monolithic deploy step, so stock behaviour fails on all four counts. This package closes that gap with GCS-backed filesystem, session and cache drivers, a Cloud Logging handler and queue plumbing for Cloud Tasks and Pub/Sub.
- Should I use the GCS drivers for sessions and cache, or Redis and Memorystore?
- The package provides GCS-backed session and cache drivers so you can stay fully serverless without extra infrastructure, which suits low-to-moderate traffic services. GCS adds latency on the session and cache hot path and every operation has a cost, so for anything with real concurrency a Redis or Memorystore backing store is usually the safer choice. Keep application code calling Laravel's Storage, Cache, Session and Log facades so the driver stays swappable through environment variables.
- How does the package send logs to Google Cloud Logging?
- It ships a Cloud Logging handler so LOG_CHANNEL can write structured entries to GCP instead of a local file that disappears when the instance is recycled. That keeps Laravel logging aligned with the rest of your GCP observability stack and avoids losing logs during scale-down. Check the repository for the exact channel name and the service account permissions your runtime needs.
- Does it support queues with Cloud Tasks or Pub/Sub?
- Yes, the package includes queue plumbing for Cloud Tasks and Pub/Sub so jobs can be dispatched and consumed on serverless infrastructure. You still need to provision the queues, service accounts and IAM bindings yourself, and verify that worker timeouts and retry semantics match your actual job durations. Exercise a full dispatch, failure and retry cycle in a staging project before relying on it for critical workloads.
- How does the build and deploy tooling handle config, route and view caching?
- The package includes artisan tooling meant to run at image build time so config, routes and views are pre-compiled into the image layer rather than written at runtime on a read-only filesystem. This is also where you warm caches so the first request after a revision rollout does not pay for it. Evaluate whether the tooling assumes a specific Dockerfile or Cloud Build structure you would have to inherit, and validate the warmup against your real config graph.
- Does this package work with Laravel Octane or Swoole?
- The package is built around a per-request, FPM-style execution model on Google serverless, so Octane and Swoole are not part of its documented target. Long-lived workers change the assumptions around session, cache and filesystem state that these drivers exist to handle. If you are standardising on Octane, plain Laravel with a Memorystore backing store and a standard Flysystem GCS adapter is the lower-risk combination.
- Is affordablemobiles/g-serverless-support-laravel actively maintained and safe for production?
- It is an internal-enablement package published by a retailer rather than a platform vendor, with roughly 33 stars and no dependents, so expect no SLA and a genuine bus-factor problem. Release metadata looks anomalous, so verify the latest tag, Packagist entry and commit history before assuming it is actively maintained. Pin a version, keep it behind Laravel's facades, and retain a documented fallback to standard Laravel on GCE or GKE so your exit cost stays bounded.