Package Data | |
---|---|
Maintainer Username: | lasserafn |
Maintainer Contact: | lasserafn@gmail.com (Lasse Rafn) |
Package Create Date: | 2016-12-05 |
Package Last Update: | 2023-03-09 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:25:04 |
Package Statistics | |
---|---|
Total Downloads: | 12,899 |
Monthly Downloads: | 44 |
Daily Downloads: | 0 |
Total Stars: | 11 |
Total Watchers: | 5 |
Total Forks: | 11 |
Total Open Issues: | 3 |
composer require lasserafn/laravel-economic
In Laravel 5.5, and above, the package will auto-register the service provider. In Laravel 5.4 you must install this service provider.
config/app.php
providers array.<?php
'providers' => [
// ...
\LasseRafn\Economic\EconomicServiceProvider::class,
// ...
]
php artisan vendor:publish --provider="LasseRafn\Economic\EconomicServiceProvider"
You can use this package without Laravel, but configuration files wont be used, so you must provide the keys to the class.
The wrapper uses the config()
method in the Economic class if no keys are provided. But if you remember to provide keys, it should never be called.
Otherwise register a global method for config
until there's a framework agnostic version (coming eventually)