This commit is contained in:
Lizandro Guarnizo
2026-01-28 23:38:21 -05:00
parent 861d507536
commit 622b99ecd5
50 changed files with 1646 additions and 19 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Cobro extends Model
{
protected $fillable = [
'referencia_type',
'referencia_id',
'user_id',
'cantidad',
'valor',
'notas',
];
public function referencia()
{
return $this->morphTo();
}
public function usuario()
{
return $this->belongsTo(User::class, 'user_id');
}
}