getting internal server error if there is no user with mobile number
This commit is contained in:

committed by
RafficMohammed

parent
752c4f5bf2
commit
697c177a0b
@@ -609,8 +609,8 @@ class TicketController extends Controller
|
||||
*/
|
||||
public function checkMobile($mobile)
|
||||
{
|
||||
$check = User::where('mobile', '=', $mobile)->first();
|
||||
if (count($check) > 0) {
|
||||
$check = User::where('mobile', '=', $mobile);
|
||||
if ($check && $check->count() > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user