new feature on sms and some bugs fixed
This commit is contained in:
@@ -136,8 +136,7 @@ class CartController extends Controller
|
||||
$data = $request->json()->all();
|
||||
$user= auth()->user();
|
||||
if ($user->is_legal == 0 || !$user) {
|
||||
return response()->json(['massage' => 'شما باید اول خود را احراز هویت کنید'], 422);
|
||||
|
||||
throw new UnprocessableEntityHttpException('لطفا ابتدا فرآیند احراز هویت خود را تکمیل کنید');
|
||||
}
|
||||
|
||||
// $data->validate([
|
||||
|
||||
Reference in New Issue
Block a user