ldc-dam/app/Typevue.php
Yann Gonidec 7b857744f7 front : fin edition média
front : téléchargement de média
command : suppression des média archivés - regénération des miniatures - import des fichiers Arcadia
2019-07-11 11:45:47 +02:00

39 lines
612 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Typevue extends Model
{
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'codeTypevue';
/**
* Get the variantes for the Typevue.
*/
public function variantes()
{
return $this->hasMany('App\Variante');
}
/**
* Get the sujet that owns the Typevue.
*/
public function sujet()
{
return $this->belongsTo('App\Sujet', 'sujet_id');
}
/**
* Get the medias for the Typevue.
*/
public function medias()
{
return $this->hasMany('App\Media');
}
}