Laravel Referral Program Enhancements

Замовник: AI | Опубліковано: 02.12.2025
Бюджет: 300 $

Our Laravel app already has a working referral module, but I need it tuned up in two key areas: 1. Rewards • The current payout is a flat amount. I’d like to change that figure and introduce additional reward types (cash-back, discount vouchers, or anything else you recommend). I don’t have final numbers yet, so part of the brief is to analyse the existing margins and propose sensible amounts and structures. 2. Registration Flow • The user sign-up process should capture, validate, and apply a referral code more smoothly than it does now. At the moment the logic sits at the very end of registration; I want it surfaced earlier so users instantly see that their code was accepted and the reward is pending. The codebase is Laravel 10 with standard Eloquent models, migrations, and some service classes; no Vue/React on the front end—just Blade with a sprinkle of Alpine.js. I’ll give you a fresh branch, database dump, and a quick loom walkthrough of the current referral logic. Deliverables • Refactored reward logic with configurable amounts and at least one new reward type in place • Adjusted registration controller, views, and tests to reflect the new referral capture point • Migration(s) if the rewards table needs extra fields • Brief markdown doc outlining the new reward settings so my team can tweak them later • Passing PHPUnit tests covering the updated flows I deploy via Forge and Envoyer, so a clean pull request is enough—no server access needed on your side. If something is unclear, flag it early and we’ll decide together.