Adding config folder

This commit is contained in:
Loann 2020-04-09 16:24:38 +02:00
parent 87c670cad0
commit a6f5ba39a3
2 changed files with 10 additions and 3 deletions

7
config/services.php Normal file
View File

@ -0,0 +1,7 @@
<?php
return [
'bmail' => env('BMAIL_KEY', null)
];

View File

@ -16,8 +16,8 @@ class BMailServiceProvider extends ServiceProvider
public function register()
{
$this->mergeConfigFrom(
__DIR__.'/../../../config/services.php',
'bmail'
__DIR__.'/../config/services.php',
'services'
);
}
@ -29,7 +29,7 @@ class BMailServiceProvider extends ServiceProvider
public function boot()
{
$this->publishes([
__DIR__.'/../../../config/services.php' => config_path('services.php')
__DIR__.'/../config/services.php' => config_path('services.php')
]);
}
}