{"id":18387040,"url":"https://github.com/f22hd/laravel-example","last_synced_at":"2025-06-15T16:10:49.909Z","repository":{"id":99916870,"uuid":"492453824","full_name":"f22hd/laravel-example","owner":"f22hd","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-15T10:25:51.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T03:56:01.405Z","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/f22hd.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-05-15T10:25:49.000Z","updated_at":"2022-05-15T10:25:55.000Z","dependencies_parsed_at":"2023-05-01T10:32:01.759Z","dependency_job_id":null,"html_url":"https://github.com/f22hd/laravel-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/f22hd/laravel-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f22hd%2Flaravel-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f22hd%2Flaravel-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f22hd%2Flaravel-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f22hd%2Flaravel-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f22hd","download_url":"https://codeload.github.com/f22hd/laravel-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f22hd%2Flaravel-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260006138,"owners_count":22944869,"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-11-06T01:24:20.841Z","updated_at":"2025-06-15T16:10:49.889Z","avatar_url":"https://github.com/f22hd.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=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Flaravel\u0026plugins=postgresql)\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%2Ff22hd%2Flaravel-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff22hd%2Flaravel-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff22hd%2Flaravel-example/lists"}