spatie / laravel-query-builder

Easily build Eloquent queries from API requests
https://spatie.be/docs/laravel-query-builder
MIT License
4.06k stars 397 forks source link

Documented command to publish config doesn't work as intended (v5) #729

Closed JasperTey closed 2 years ago

JasperTey commented 2 years ago

In https://github.com/spatie/laravel-query-builder/blob/main/docs/installation-setup.md, the command for publishing the config:

php artisan vendor:publish --provider="Spatie\QueryBuilder\QueryBuilderServiceProvider" --tag="config"

Did not work for me (Laravel 9):

> php artisan vendor:publish --provider="Spatie\QueryBuilder\QueryBuilderServiceProvider" --tag="config"
> No publishable resources for tag [config].
> Publishing complete.

Removing --tag="config" was how I got it working:

> php artisan vendor:publish --provider="Spatie\QueryBuilder\QueryBuilderServiceProvider"
> Copied File [/vendor/spatie/laravel-query-builder/config/query-builder.php] To [/config/query-builder.php]
> Publishing complete.