here is my controller i don't know why i have null value i check using dd($user)
public function success1(Request $request)
{
$phonetoken = $request->input('phonetoken');
$user =User::where('phonetoken', $phonetoken)->first();
dd($user);
if(!is_null($user)){
$user->phoneconfirmed = 1;
$user->phonetoken = " ";
$user->save();
return redirect('sellerdashboard');
}
return redirect()->back();
}
why i m not getting value in $user always getting null
via Bipin Shukla