config file publishing doesn't work
aand18 opened this issue · 4 comments
Running php artisan vendor:publish --provider=BeyondCode\\QueryDetector\\QueryDetectorServiceProvider doesn't create the config file. Yet, the console says 'Publishing complete.'
I have tried it with fresh installation of this package. And the command is working. But your problem seems to be a permission issue.
The documentation "suppose" you use the auto discovery package of laravel, but if you are in a version of laravel < 5.5 or you have disabled the auto discovery package (see https://mcampbell508.github.io/2018/01/20/disable-laravel-autodiscovery/), you need to add to your config/app.php file the serviceProvider mentioned, before launch the publish command
I had the same problem, but when I ran it with single slashes instead of double it worked BeyondCode\QueryDetector\QueryDetectorServiceProvider
Why double slashes anyways?
Just had the same problem. For me the php artisan vendor:publish --provider=BeyondCode\\QueryDetector\\QueryDetectorServiceProvider worked and php artisan vendor:publish --provider=BeyondCode\QueryDetector\QueryDetectorServiceProvider not.