Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 2cce99a

Browse files
committed
Clarifications
1 parent 923f85f commit 2cce99a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# laravel-db-uri
2-
Package to translate a database URI into database config values.
1+
# Laravel Database URI
2+
Drop-in package to translate a database URI into database config values. No need to add logic to your
3+
`config/database.php` file.
34

45
This is meant to help prevent the need for manually parsing database URIs, like the ones that come from Heroku or AWS.
56
to use than manually parsing a URI into it's host, password, username, port, (etc.) components.
@@ -31,8 +32,8 @@ Override that by publishing the config file and setting it's values in `config/d
3132
```
3233
// config/db-uri.php
3334
return [
34-
'redis' => 'SOME_REDIS_URL',
35-
'mysql' => 'SOME_MYSQL_URL',
35+
'default' => 'DATABASE_URL', // default
36+
'mysql' => 'OTHER_MYSQL_URL', // custom override for the mysql driver
3637
];
3738
```
3839

0 commit comments

Comments
 (0)