ldc-dam/app/Typemedia.php

26 lines
370 B
PHP
Raw Normal View History

2019-05-29 14:05:54 +02:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Typemedia extends Model
{
2019-06-17 09:22:10 +02:00
protected $table = "typemedias";
2019-05-29 14:05:54 +02:00
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'codeTypemedia';
/**
* Get the media for the Typemedia.
*/
public function medias()
{
return $this->hasMany('App\Media');
}
2019-05-29 14:05:54 +02:00
}