ldc-dam/app/Models/Historique.php
2022-06-20 14:04:15 +02:00

26 lines
472 B
PHP

<?php
namespace App\Models;
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\Models\User', 'user_id');
}
/**
* Get the media that owns the historique.
*/
public function media()
{
return $this->belongsTo('App\Models\Media', 'media_id');
}
}