ldc-gen-game-web/app/Models/CodeEan.php

35 lines
624 B
PHP
Raw Permalink Normal View History

<?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;
2022-03-15 16:27:41 +01:00
// * RELATIONSHIPS
/**
* Has Many Participation relationship
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function participations()
{
return $this->hasMany(Participation::class);
}
}