Ahora si(?

This commit is contained in:
Laucha1312
2026-06-04 15:01:53 -03:00
parent 47408d49fc
commit 8fc619f9e7
127 changed files with 12952 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Pase extends Model
{
protected $table = 'pases';
protected $primaryKey = 'id_pase';
protected $fillable = [
'id_jugador',
'id_club_origen',
'id_club_destino',
'estado'
];
public function jugador()
{
return $this->belongsTo(Jugador::class, 'id_jugador', 'id_jugador');
}
public function clubOrigen()
{
return $this->belongsTo(Club::class, 'id_club_origen', 'id_club');
}
public function clubDestino()
{
return $this->belongsTo(Club::class, 'id_club_destino', 'id_club');
}
}