Update RegistroCompra.php
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user