Skip to content

Commit

Permalink
added command to the service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrax committed Feb 22, 2021
1 parent 32cb250 commit cafb039
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/LocationDemografiaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Epmnzava\LocationDemografia;

use Epmnzava\LocationDemografia\Console\LoadData;
use Illuminate\Support\ServiceProvider;

class LocationDemografiaServiceProvider extends ServiceProvider
Expand All @@ -28,6 +29,11 @@ public function boot()
// $this->loadRoutesFrom(__DIR__.'/routes.php');

if ($this->app->runningInConsole()) {

$this->commands([
LoadData::class,
]);

$this->publishes([
__DIR__ . '/../config/config.php' => config_path('location-demografia.php'),
], 'config');
Expand Down

0 comments on commit cafb039

Please sign in to comment.