This commit is contained in:
Laucha1312
2026-06-04 15:14:46 -03:00
parent ed94601e34
commit 0841794c50
76 changed files with 0 additions and 7737 deletions
-35
View File
@@ -1,35 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Promocion extends Model
{
protected $table = 'promociones';
protected $primaryKey = 'id';
public $timestamps = false;
protected $fillable = [
'nombre',
'direccion',
'lat',
'lng',
'contacto',
'descripcion',
'descripcion_lugar',
'categoria',
'imagen',
];
protected $casts = [
'id' => 'integer',
'lat' => 'decimal:8',
'lng' => 'decimal:8',
];
public function promoQrs()
{
return $this->hasMany(PromoQr::class, 'id_promo', 'id');
}
}