This is the two-tier Affiliate Program example written in Laravel 5.2
composer update
artisan key:generate
artisan migrate:install
artisan migrate
artisan db:seed
Set up your .env and add to the end:
PUSHER_APP_ID=200699
PUSHER_KEY=e95c6a7f2c5eed28e4a1
PUSHER_SECRET=5643d0099cb74c93a2c4
user: jack@daniels.com
password: secret
- Set up secure chanels for Pusher, use tokens instead of UserID and remove Long Polling Fallback (or use socket.io).
- Use UUID instead of incremental ID (was problems with user auth).
- Implement User Roles.
- Refactor DB to use Nested Sets for getting many referrers.
- Set up cache for Eloquent.
- Use Gulp for frontend.