Skip to content

Commit

Permalink
fix: publish routes
Browse files Browse the repository at this point in the history
  • Loading branch information
altynbek07 committed May 3, 2020
1 parent 0fc0d29 commit 957cee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Exchange1CServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class Exchange1CServiceProvider extends ServiceProvider
public function boot()
{
// routes
$this->loadRoutesFrom(__DIR__.'/../publish/routes.php');
$this->loadRoutesFrom(__DIR__ . '/../routes/web.php');

// config
$this->publishes([__DIR__.'/../publish/config/' => config_path()], 'config');
$this->publishes([__DIR__ . '/../config/' => config_path()], 'config');
}

/**
Expand All @@ -32,7 +32,7 @@ public function boot()
public function register()
{
$this->app->singleton(Config::class, function ($app) {
return new Config($app['config']['exchange1c']);
return new Config($app['config']['exchange-1c']);
});

$this->app->singleton(EventDispatcherInterface::class, function ($app) {
Expand Down

0 comments on commit 957cee5

Please sign in to comment.