ldc-dam/app/Models/Historique.php

27 lines
417 B
PHP
Raw Normal View History

2019-07-22 14:54:42 +02:00
<?php
namespace App\Models;
2019-07-22 14:54:42 +02:00
use Illuminate\Database\Eloquent\Model;
class Historique extends Model
{
public $timestamps = false;
/**
* Get the user that owns the historique.
*/
public function user()
{
return $this->belongsTo('App\User', 'user_id');
}
/**
* Get the media that owns the historique.
*/
public function media()
{
return $this->belongsTo('App\Models\Media', 'media_id');
2019-07-22 14:54:42 +02:00
}
}