Update RegistroCompra.php

This commit is contained in:
Lizandro Guarnizo
2025-04-14 18:29:28 -05:00
parent c27ee727a1
commit b7037931ee
+3
View File
@@ -9,10 +9,13 @@ class RegistroCompra extends Model
{ {
use HasFactory; use HasFactory;
protected $table = 'registros_compras';
protected $fillable = ['user_id', 'nombre', 'email', 'saldo']; protected $fillable = ['user_id', 'nombre', 'email', 'saldo'];
public function user() public function user()
{ {
return $this->belongsTo(User::class); return $this->belongsTo(User::class);
} }
} }