amranidev / laracombee Goto Github PK
View Code? Open in Web Editor NEW:bar_chart: A Recombee integration for Laravel
License: MIT License
:bar_chart: A Recombee integration for Laravel
License: MIT License
I've got this error when ran: php artisan laracombee:migrate user
.
After some diving in codebase i found in file: AbstractRecombee.php
duplicate methods at lines: 671, 691. So maybe you need to fix line 691:
public function listItemViewPortions($userId)
to:
public function listItemUserPortions($userId)
how do i generate the laracombee.php in app/config file to add the database details?
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?
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
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?
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!
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?
Gave a look a the code but I couldn't figur out why. Using native apis works perfetly.
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!
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 ๐
I have my Laravel on Heroku and when I push it out to Heroku it gives me this. However, it works fine on localhost. Any ideas?
In AliasLoader.php line 80:
Class 'Amranidev\Laracombee\facades\LaracombeeFacade' not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.