ldc-gen-game-web/app/Models/CodeEan.php
2022-08-11 10:26:29 +02:00

31 lines
581 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class CodeEan extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['code', 'product'];
/**
* Indicates if the model should be timestamped.
*
* @var boolean
*/
public $timestamps = false;
/**
* Participations relation
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function participations()
{
return $this->hasMany(Participation::class);
}
}