Skip to content

Alexwijn/laravel-database-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Database URL

Packagist License Latest Stable Version Total Downloads

This package will provide automatically parse and configure you Laravel application to use the custom environment variables that commonly used for services like Heroku and Docker.

Installation

Require this package with composer.

composer require alexwijn/laravel-database-url

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Laravel 5.5+:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

Alexwijn\DatabaseUrl\ServiceProvider::class,

Supported environment variables

At the moment we support the following configurations:

  • DATABASE_URL - Eg. mysql://username:password@localhost/database
  • DATABASE_URL - Eg. mariadb://username:password@localhost/database
  • DATABASE_URL - Eg. postgres://username:password@localhost/database
  • REDIS_URL - Eg. redis://redis:password@localhost/0
  • ELASTICSEARCH_URL - Eg. tcp://localhost:9200

About

Automatically parse and load the DATABASE_URL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages