nuevo formulario
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CompatibilidadDgo extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'historial_id',
|
||||
'tipo_dispositivo',
|
||||
'marca_dispositivo',
|
||||
'ciudad',
|
||||
];
|
||||
|
||||
public function historial()
|
||||
{
|
||||
return $this->belongsTo(Historiale::class);
|
||||
}
|
||||
}
|
||||
@@ -52,4 +52,9 @@ class Historiale extends Model
|
||||
{
|
||||
return $this->belongsToMany(Cuentas::class, 'logs', 'historial_id', 'cuenta_id');
|
||||
}
|
||||
|
||||
public function compatibilidadDgo()
|
||||
{
|
||||
return $this->hasOne(CompatibilidadDgo::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ class Servicio extends Model
|
||||
'por_tiempo',
|
||||
'renovacion',
|
||||
'precio',
|
||||
'ubicacion'
|
||||
|
||||
'ubicacion',
|
||||
'dgo',
|
||||
];
|
||||
|
||||
public function promocion(){
|
||||
@@ -41,4 +41,9 @@ class Servicio extends Model
|
||||
public function cuentas(){
|
||||
return $this ->hasMany(Cuentas::class,'servicio_id');
|
||||
}
|
||||
|
||||
public function compatibilidadDgo()
|
||||
{
|
||||
return $this->hasMany(CompatibilidadDgo::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user