cleanup of db seeders

This commit is contained in:
Nabeel Shahzad
2017-12-05 21:09:17 -06:00
parent a9b7f9bf2a
commit 98b619077d
5 changed files with 41 additions and 99 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace Modules\Vacentral\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Factory;
class AppServiceProvider extends ServiceProvider
{
/**
* Boot the application events.
*/
public function boot()
{
$this->registerConfig();
}
/**
* Register the service provider.
*/
public function register()
{
//
}
/**
* Register config.
*/
protected function registerConfig()
{
$this->publishes([
__DIR__.'/../Config/config.php' => config_path('vacentral.php'),
], 'config');
$this->mergeConfigFrom(
__DIR__.'/../Config/config.php', 'vacentral'
);
}
}