ldc-dam/app/Typevue.php

40 lines
612 B
PHP
Raw Normal View History

2019-06-17 09:22:10 +02:00
<?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');
}
2019-06-17 09:22:10 +02:00
}