pdmfc/database-env-php-8-support

Get env variables from database

dev-main 2024-02-15 18:19 UTC

This package is auto-updated.

Last update: 2024-12-16 10:53:36 UTC


README

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require pdmfc/database-env-php-8-support

Usage

Add the DatabaseEnv setConfig() to AppServiceProvider

// app/Providers/AppServiceProvider.php
public function boot(): void
{
    DatabaseEnv::setConfig();
    ...
}

Run the DatabaseEnv migration

php artisan migrate

Run the DatabaseEnv command database-env:add to add the key=value pair variable of .env to database

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email vhugo@vitorhugo.pt instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.