how to get all user based on where condition and compare this result with another condition in laravel eloquent
I have a user table column referred_by: I have a view for step 1 user like where referred_by=auth::user()->id In here whoever registered by this user referal link will be shown in this table: I …