Giter VIP home page Giter VIP logo

example-laravel's Introduction

title description tags
Laravel
A Laravel app that connects to a PostgreSQL database
php
laravel
postgresql

Laravel Starter Example

This is a Laravel starter app that connects to a Railway Postgres database.

Deploy on Railway Test

โœจ Features

  • PHP
  • Laravel
  • Postgres

๐Ÿ’โ€โ™€๏ธ How to use

๐Ÿ“ Notes

  • Dockerfile: The Dockerfile and associated files in docker/ are based on Laravel Sail PHP 8.0
  • 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. See the .env.example for an example of using these with Postgres.
  • 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
  • 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
  • APP_KEY: This starter will automatically generate the APP_KEY (php artisan key:generate in the docker/start-container)
  • Migrations: This starter automatically runs migrations on deploy (in the docker/start-container)

example-laravel's People

Contributors

railway-bot avatar

Watchers

Didi Prasetyo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.