Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php artisan vendor:publish --provider="Cviebrock\LaravelElasticsearch\ServiceProvider" #30

Closed
bekee opened this issue Oct 22, 2017 · 9 comments

Comments

@bekee
Copy link

bekee commented Oct 22, 2017

elastic config file is not published

@rsantos
Copy link

rsantos commented Oct 26, 2017

same problem

@marcusmoore
Copy link

Are you using Laravel or Lumen? What version?

@gozhhu
Copy link

gozhhu commented Oct 27, 2017

Nothing to publish for tag [].

@rsantos
Copy link

rsantos commented Oct 27, 2017

Hi @marcusmoore.
I was using laravel 5.4, I updated to laravel 5.5 and it worked.

@marcusmoore
Copy link

Interesting. I just installed it in an 5.4 app just fine.
I wonder if, during the update from 5.4 to 5.5, you updated this package's version to 2.0.1 which added the extra auto-publishing bit and that changed something.

@cviebrock
Copy link
Contributor

Going to close this since it all seems sorted out now.

@andrewblaney
Copy link

If I try to install on 5.3, nothing is published. I also get the message:

Nothing to publish for tag [].

Laravel: 5.3.31
Composer: "cviebrock/laravel-elasticsearch": "^2"

@cviebrock
Copy link
Contributor

Laravel 5.3 didn't support auto-registering packages and aliases. You will need to add:

Cviebrock\LaravelElasticsearch\ServiceProvider::class

to your list of providers and:

'Elasticsearch' => Cviebrock\LaravelElasticsearch\Facade::class

to the aliases array, both in config/app.php.

(Keep in mind that Github shows the README for the master branch. You should always look at the version specific to your release. In this case, https://github.com/cviebrock/laravel-elasticsearch/tree/2.0 has the right info for you.)

@habib-jalal
Copy link

Sir i am getting this error...
In ProviderRepository.php line 208:
Class 'Cviebrock\LaravelElasticSearch\ServiceProvider' not found

here is my line 208
public function createProvider($provider)
{
return new $provider($this->app);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants