Giter Club home page Giter Club logo

laracombee's Introduction

Hi there ๐Ÿ‘‹

laracombee's People

Contributors

amranidev avatar stylecibot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laracombee's Issues

Manage multiple databases

Does it possible to connect to several databases. As I understand, I need to register two Laracombee instances for this, am I right?. Otherwise how it will be better to implement this behaviour?

Cannot use object of type GuzzleHttp\Promise\Promise as array

I just ran into another issue with regards to providing recommendations. This is the statement I put in code:
$user = User::findOrFail( $user_id);

    // Prepare the request for recombee server, we need 10 recommended items for a given user.
    `$recommendations = Laracombee::recommendTo($user, $limit, $option);`

    `$itemsIds = $recommendations['recomms'];`

    `$items = \App\Product::find($itemsIds);`

And this is the error I get:
Cannot use object of type GuzzleHttp\Promise\Promise as array

pagination

How should I handle paginations? I know that you set a number of recommendations to be retrieved, but in this case, how would I implement something like an infinate scroll? Would I just request the total number of available posts as the attribute for the number of posts I want or is there some other methods I should be using?

Using multiple Models as Item(s)

Hi there,

Is there any intended way of using multiple Eloquent models as Recombee items instead of a single one with a single DB?

Thanks!

How to initialize the Laracombee model to be used in another controller

Hello Amrani,
I kindly need some help. I would like to call the "Laracombee::" in a different controller so that I can be able to store interactions. From my experience, if we would like to use an instance of a model say 'Products', we usually add 'use App\Product' at the beginning of the controller file. How can we do so then in this case for Laracombee?

Error on seed command

Hi @amranidev . Thank you so much for your module!
However i'm having some trouble with seed command. I'mn getting an error, which is

{"message": "Invalid (not found) path for request #0; batch not executed"}.
i reaaly cannot find the error

Thank you!

Will update this package soon.

I know it's been a while since I update this library, I thought the API and Laravel stack won't change that much, but I was wrong ๐Ÿ˜ I will start maintaining this project again, feel free to reachout to me if you want to contribute or if you have any question.
Cheers guys ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.