ldc-tousenselle/app/Models/Participation.php
Jérémy Munsch f7a3f5d5f9 first draw
2021-06-14 09:34:42 +02:00

20 lines
314 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
class Participation extends Pivot
{
protected $table = 'participations';
protected $casts = [
'buydate' => 'date'
];
public function eanCode()
{
return $this->belongsTo(EanCode::class);
}
}