Closed ClProsser closed 2 years ago
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
No publishable resources for tag [].
$provider
static::$publishes
To fix is, simply update the command:
php artisan vendor:publish --provider="eloquentFilter\ServiceProvider"
To Reproduce Steps to reproduce the behavior:
Expected behavior The config should be published (without the error message)
Screenshots
The missmatch mentioned above (using two dumps):
Describe the bug According to the README.md the config can be published using:
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 forstatic::$publishes
) shows the missmatch. https://github.com/laravel/framework/blob/97b41840b9bbf93e0fe9c764201e77eb92a09dac/src/Illuminate/Support/ServiceProvider.php#L344To fix is, simply update the command:
To Reproduce Steps to reproduce the behavior:
Expected behavior The config should be published (without the error message)
Screenshots
The missmatch mentioned above (using two dumps):