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

Laravel 5.2 #24

Closed
jurienhamaker opened this issue Jan 26, 2016 · 2 comments
Closed

Laravel 5.2 #24

jurienhamaker opened this issue Jan 26, 2016 · 2 comments

Comments

@jurienhamaker
Copy link

Since laravel 5.2 the dev-master commits are broken.

I get the following error:

Fatal error: Class 'ElasticquentResultCollection' not found in /vendor/elasticquent/elasticquent/src/ElasticquentTrait.php on line 253
@petercoles
Copy link
Contributor

I've not seen that with normal 5.2 usage, but I have seen it when trying to write tests. I think it's to with the static methods trying to instantiate a new instance of a class that's in a different namespace to the trait. I'm about to put up a pull request that fixes this for the examples that I've seen, and since I'm using that code with Laravel 5.2 app too, if accepted, it will hopefully deal with your issue too.

@timgws
Copy link
Member

timgws commented Jan 27, 2016

There was an issue with the use statements. I am releasing v1.0.5 right now to fix this issue.

Route::get('test', function () {
    Book::createIndex();
    Book::addAllToIndex();

    $books = Book::search('Life');
    print_r($books->getHits());
});

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

3 participants