Initial commit

This commit is contained in:
lizandrogd
2023-07-26 08:28:13 -05:00
commit 8ce210f27c
1207 changed files with 36066 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Servicio extends Model
{
use HasFactory;
protected $fillable = [
'nombre',
'descripcion',
'color_fondo',
'estado',
'img',
'promocion_id',
'pantallas',
'img_inicio',
'mensaje',
'completa',
'ver_perfiles',
'perfiles',
'ver_url',
'url',
'por_tiempo',
'renovacion'
];
public function promocion(){
return $this ->belongsTo(Promociones::class);
}
public function tarifas(){
return $this ->hasMany(Tarifas::class,'servicio_id');
}
public function cuentas(){
return $this ->hasMany(Cuentas::class,'servicio_id');
}
}