Login->avatar, ID-EVIDENCIAS
This commit is contained in:
parent
4d6f1c7ddc
commit
53f4bc74be
@ -27,8 +27,9 @@ public function create(Request $request){
|
||||
if($plan->id_user == $id_user){
|
||||
$evidencia = new Evidencias();
|
||||
$evidencia->id_plan = $request->id_plan;
|
||||
$evidencia->codigo = $request->codigo;
|
||||
$evidencia->codigo = $plan->codigo;
|
||||
$evidencia->denominacion = $request->denominacion;
|
||||
error_log($request->denominacion);
|
||||
$path = $request->adjunto->store('evidencias');
|
||||
$evidencia->adjunto = $path;
|
||||
$evidencia->id_user = $id_user;
|
||||
@ -36,6 +37,7 @@ public function create(Request $request){
|
||||
return response([
|
||||
"status" => 1,
|
||||
"message" => "Evidencia creada exitosamente",
|
||||
"id" => $evidencia
|
||||
]);
|
||||
}
|
||||
else{
|
||||
|
@ -64,7 +64,9 @@ public function handleProviderCallback($provider){
|
||||
$token = $userCreated->createToken('token-auth_token')->plainTextToken;
|
||||
return response()->json([
|
||||
"message" => "Usuario logueado",
|
||||
"user" => $userCreated,
|
||||
"user" => $userCreated,s
|
||||
"image" => $userProvider->getAvatar(),
|
||||
|
||||
"access_token" => $token
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user