Laravel for GAE
PHP Other
Pull request Compare This branch is 1 commit ahead, 1283 commits behind laravel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
storage
tests
.env.example
.gitattributes
.gitignore
LICENSE
app.yaml
artisan
composer.json
composer.lock
gulpfile.js
package.json
php.ini
phpspec.yml
phpunit.xml
readme.md
server.php

readme.md

Laravel for Google App Engine

This repository contains a modified Laravel Starter app for Google App Engine.

Installation

  1. Clone the repository with

     git clone https://github.com/GoogleCloudPlatform/laravel.git
    
  2. Follow the PHP Tutorial if you have never used App Engine before.

  3. Create a CloudSQL instance based on these instructions. Also create a database for storing the Eloquent ORM.

  4. Replace <project-id>, <instance-id> and <database-name> in app.yaml with the corresponding value for your Google Cloud project and ClouSQL instance. By default, the app will store the cache files and logs at a specific location in the app's default GCS bucket. This can be changed by altering the STORAGE_PATH environmental variable in app.yaml. Remember to also update google_app_engine.allow_include_gs_buckets to match the new value in php.ini.

  5. Install composer if you haven't done so previously. To install all required dependencies, run the following command from your project's root, which is the directory that contains composer.json.

     php composer.phar install
    
  6. Deploy your app.

  7. Access your app using http://your_project_id.appspot.com/ and you should see Laravel's default welcome page.

Troubleshooting

  1. If Composer fails to download the dependencies, make sure that your local PHP installation satisfies Composer's system requirements. Specifically, cURL support is required.

  2. If you see errors about missing the default Cloud Storage bucket, follow the cloud integration instructions to create a default bucket for your project.

Contributing

Have a patch that will benefit this project? Awesome! Follow these steps to have it accepted.

  1. Please sign our Contributor License Agreement.
  2. Fork this Git repository and make your changes.
  3. Create a Pull Request
  4. Incorporate review feedback to your changes.
  5. Accepted!

License

All files in this repository are under the MIT License unless noted otherwise.