????

Your IP : 3.140.246.119


Current Path : /home/thenclexdoctor.com/.trash/app/Http/Controllers/Auth/
Upload File :
Current File : /home/thenclexdoctor.com/.trash/app/Http/Controllers/Auth/ReferralController.php

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Models\AffiliateCode;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cookie;

class ReferralController extends Controller
{
    public function referral($code)
    {
        $check = AffiliateCode::where('code', $code)->first();

        if (!empty($check)) {
            Cookie::queue('referral_code', $code, 24 * 60);
        }

        return redirect('/register');
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...