update
This commit is contained in:
@@ -36,6 +36,7 @@ class ShowServicio extends Component
|
||||
public $completa;
|
||||
public $ver_url;
|
||||
public $url;
|
||||
public $precio;
|
||||
public $renovacion = false;
|
||||
|
||||
protected $rules = [
|
||||
@@ -108,6 +109,7 @@ class ShowServicio extends Component
|
||||
$servicio->ver_url = $this->ver_url;
|
||||
$servicio->url = $this->url;
|
||||
$servicio->renovacion = $this->renovacion;
|
||||
$servicio->precio = $this->precio;
|
||||
$servicio->save();
|
||||
|
||||
$this->alert('success', 'Servicio creado correctamente!', [
|
||||
@@ -138,6 +140,7 @@ class ShowServicio extends Component
|
||||
$this->ver_url = $consulta_servicios->ver_url;
|
||||
$this->url = $consulta_servicios->url;
|
||||
$this->renovacion = $consulta_servicios->renovacion == 1 ? true : false;
|
||||
$this->precio = $consulta_servicios->precio;
|
||||
}
|
||||
public function guardar()
|
||||
{
|
||||
@@ -197,6 +200,7 @@ class ShowServicio extends Component
|
||||
'ver_url' => $this->ver_url,
|
||||
'url' => $this->url,
|
||||
'renovacion' => $this->renovacion == 1 ? true : false,
|
||||
'precio'=> $this->precio
|
||||
]);
|
||||
|
||||
$this->serviciosEditar = false;
|
||||
@@ -261,5 +265,6 @@ class ShowServicio extends Component
|
||||
$this->completa = null;
|
||||
$this->tiempo = null;
|
||||
$this->renovacion = null;
|
||||
$this->servicio = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user