This commit is contained in:
Laucha1312
2026-06-04 15:15:23 -03:00
parent 0841794c50
commit 90c5f85512
167 changed files with 15870 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?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');
}
}