$input = Input::all();
$user = User::where(function($q) {
$q->where('email', $input['email'] )
->orWhere('email', $input['emails'][0]['value'] );
})
->first();
print_r($user);die;
Always says Undefined variable: input
What is the best way to compare email with two values please guide
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…