21 lines
314 B
PHP
21 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);
|
||
|
|
}
|
||
|
|
}
|