Change evidencia
This commit is contained in:
parent
4540caa3c5
commit
04972b9fb6
@ -27,7 +27,7 @@ public function create(Request $request){
|
|||||||
if($plan->id_user == $id_user){
|
if($plan->id_user == $id_user){
|
||||||
$evidencia = new Evidencias();
|
$evidencia = new Evidencias();
|
||||||
$evidencia->id_plan = $request->id_plan;
|
$evidencia->id_plan = $request->id_plan;
|
||||||
$evidencia->codigo = $plan->codigo;
|
$evidencia->codigo = $plan->codigo;
|
||||||
$evidencia->denominacion = $request->denominacion;
|
$evidencia->denominacion = $request->denominacion;
|
||||||
error_log($request->denominacion);
|
error_log($request->denominacion);
|
||||||
$path = $request->adjunto->store('evidencias');
|
$path = $request->adjunto->store('evidencias');
|
||||||
@ -37,7 +37,7 @@ public function create(Request $request){
|
|||||||
return response([
|
return response([
|
||||||
"status" => 1,
|
"status" => 1,
|
||||||
"message" => "Evidencia creada exitosamente",
|
"message" => "Evidencia creada exitosamente",
|
||||||
"id" => $evidencia
|
"evidencia" => $evidencia
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
Reference in New Issue
Block a user