questocat / laravel-referral Goto Github PK
View Code? Open in Web Editor NEWA Referral System With Laravel
License: MIT License
A Referral System With Laravel
License: MIT License
I can't seem to understand how to give a referral point for there effort
How can i register an user and fill the referred_by
field ?
Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function Questocat\Referral\Traits\str_random()
at /var/www/cportal/data/www/mysite.com/vendor/questocat/laravel-referral/src/Traits/UserReferral.php:47
43| {
44| $length = config('referral.referral_length', 5);
45|
46| do {
> 47| $referral = str_random($length);
48| } while (static::referralExists($referral));
49|
50| return $referral;
51| }
Hey there! Thanks for the package
What happens with the existing users? The id is only generated when you create an user?
Otherwise, I don't understand where to put the middleware
SQLSTATE[23502]: Not null violation: 7 ERROR: column "affiliate_id" contains null values (SQL: alter table "users" add column "referred_by" varchar(191) null, add column "affiliate_id" varchar(191) not null)
Hey there! Thanks for the package
What happens with the existing users? The id is only generated when you create an user?
Otherwise, I don't understand where to put the middleware
It seems what it is enough to update requirements in composer.json
Hey there! Thanks for the package
What happens with the existing users? The id is only generated when you create an user?
Otherwise, I don't understand where to put the middleware
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.