Added new api
This commit is contained in:
@@ -76,7 +76,7 @@ class AuthController extends Controller
|
||||
$user = User::where('mobile', $request->mobile)->first();
|
||||
|
||||
if (! $user) {
|
||||
return response()->json(['error' => 'User not found'], 404);
|
||||
return response()->json(['error' => 'کاربر یافت نشد'], 404);
|
||||
}
|
||||
|
||||
$latestCode = UserCode::where('user_id', $user->id)
|
||||
|
||||
Reference in New Issue
Block a user