26 lines
403 B
PHP
26 lines
403 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
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\Media', 'media_id');
|
|
}
|
|
}
|