Skip to content

Commit 9fa04eb

Browse files
committed
fixing missing config easy
1 parent 4abfc8d commit 9fa04eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RepositoryServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Carbon\Laravel\ServiceProvider;
66
use Illuminate\Filesystem\Filesystem;
77
use Illuminate\Support\Collection;
8+
use Illuminate\Support\Facades\Artisan;
89
use Illuminate\Support\Facades\File;
910
use LaravelEasyRepository\helpers\Search;
1011
use SplFileInfo;
@@ -30,7 +31,7 @@ public function register()
3031
$this->bindAllRepositories();
3132
$this->bindAllServices();
3233
} else {
33-
throw new \Exception("Config esay repository not found");
34+
Artisan::call('vendor:publish --provider="LaravelEasyRepository\LaravelEasyRepositoryServiceProvider" --tag="easy-repository-config"');
3435
}
3536
}
3637

0 commit comments

Comments
 (0)