2019-07-22 14:54:42 +02:00
|
|
|
<?php
|
|
|
|
|
|
2019-09-12 11:08:25 +02:00
|
|
|
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()
|
|
|
|
|
{
|
2019-09-12 11:08:25 +02:00
|
|
|
return $this->belongsTo('App\Models\Media', 'media_id');
|
2019-07-22 14:54:42 +02:00
|
|
|
}
|
|
|
|
|
}
|