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
|
|
|
|
|
*/
|
2019-07-11 11:45:47 +02:00
|
|
|
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
|
|
|
}
|