mehdi-fathi/eloquent-filter

Can't publish config

ClProsser opened this issue · 0 comments

Describe the bug
According to the README.md the config can be published using:

php artisan vendor:publish --provider="eloquentFilter\QueryFilter\ServiceProvider"

However, this yields the error: No publishable resources for tag [].
The reason is that the provider mentioned in the command does not match the definition.
Laravel uses the function below to get the paths for publishing. Adding two dumps (one for $provider and one for static::$publishes) shows the missmatch.
https://github.com/laravel/framework/blob/97b41840b9bbf93e0fe9c764201e77eb92a09dac/src/Illuminate/Support/ServiceProvider.php#L344

To fix is, simply update the command:

php artisan vendor:publish --provider="eloquentFilter\ServiceProvider"

To Reproduce
Steps to reproduce the behavior:

  1. Install a fresh laravel instance
  2. Install this package (including app.php, ... according to instructions)
  3. Publish the config using the command mentioned above.

Expected behavior
The config should be published (without the error message)

Screenshots

The missmatch mentioned above (using two dumps):
WindowsTerminal_sl32FUL8U6