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)
|
public function checkMobile($mobile)
|
||||||
{
|
{
|
||||||
$check = User::where('mobile', '=', $mobile)->first();
|
$check = User::where('mobile', '=', $mobile);
|
||||||
if (count($check) > 0) {
|
if ($check && $check->count() > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user