Delivery Info Insert

This commit is contained in:
Mouhamed Lamine
2018-08-06 09:30:08 +08:00
parent 43fdca4bbe
commit 2e46ea8c2b
9 changed files with 6050 additions and 960 deletions
+10 -2
View File
@@ -49,7 +49,7 @@ class AuthController extends Controller
$token = mt_rand(0000,9999);
// for testing
if($request->phone == '0123456789'){
if($request->phone == '0143499252'){
$token = "1234";
}
@@ -159,6 +159,12 @@ class AuthController extends Controller
return response()->json(['success'=> true, 'message'=> 'Profile updated.'], 200);
}
public function show()
{
return response()->json(['user' => Auth::user()]);
}
/**
@@ -294,4 +300,6 @@ class AuthController extends Controller
'success' => false, 'data'=> ['message'=> 'Invalid token or email or expired code']
]);
}
}
}