{"id":22382987,"url":"https://github.com/fey/laravel-railway","last_synced_at":"2025-07-08T07:33:55.986Z","repository":{"id":117282436,"uuid":"576923611","full_name":"fey/laravel-railway","owner":"fey","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T12:38:43.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T01:52:32.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-11T12:38:41.000Z","updated_at":"2022-12-11T12:38:48.000Z","dependencies_parsed_at":"2023-05-16T05:45:27.632Z","dependency_job_id":null,"html_url":"https://github.com/fey/laravel-railway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Flaravel-railway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Flaravel-railway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Flaravel-railway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Flaravel-railway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fey","download_url":"https://codeload.github.com/fey/laravel-railway/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245727640,"owners_count":20662553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T00:42:34.352Z","updated_at":"2025-03-26T19:44:31.445Z","avatar_url":"https://github.com/fey.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Laravel\ndescription: A Laravel app that connects to a PostgreSQL database\ntags:\n  - php\n  - laravel\n  - postgresql\n---\n\n# Laravel Starter Example\n\nThis is a [Laravel](https://laravel.com/) starter app that connects to a Railway Postgres database.\n\n[![Deploy on Railway Test](https://railway.app/button.svg)](https://railway.app/new/template/fWEWWf)\n\n## ✨ Features\n\n- PHP\n- Laravel\n- Postgres\n\n## 💁‍♀️ How to use\n\n- [Create a Railway project with the Postgres plugin](https://railway.app/project?plugins=postgresql)\n- Connect to your Railway project with `railway link`\n\n## 📝 Notes\n\n- **Dockerfile**: The `Dockerfile` and associated files in `docker/` are based on [Laravel Sail PHP 8.0](https://github.com/laravel/sail/tree/1.x/runtimes/8.0)\n- **Plugin Config**: To connect to a Railway Plugin, Postgres for example, you will need to utilize the environment variables listed for that plugin in the [Railway Docs](https://docs.railway.app/).\n  See the `.env.example` for an example of using these with Postgres.\n- **Web server port**: Railway dynamically assigns a port for your webserver. We grab the `$PORT` environment variable in `docker/start-container` to set this on Artisan `serve`\n- **Logging**: Because the disk on Railway containers is ephemeral, we pipe the logs normally output to `storage/logs/laravel.log` to `stdout` [as seen here](https://github.com/sorrell/railavel/commit/2802b8c5032a13a601a903276ee2181678009f67)\n- **APP_KEY**: This starter will automatically generate the `APP_KEY` (`php artisan key:generate` in the `docker/start-container`)\n- **Migrations**: This starter automatically runs migrations on deploy (in the `docker/start-container`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffey%2Flaravel-railway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffey%2Flaravel-railway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffey%2Flaravel-railway/lists"}