2019-07-25 09:43:06 +02:00
|
|
|
<?php
|
|
|
|
|
|
2019-09-12 11:08:25 +02:00
|
|
|
namespace App\Models;
|
2019-07-25 09:43:06 +02:00
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Recherche extends Model
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the sujet that owns the recherche.
|
|
|
|
|
*/
|
|
|
|
|
public function sujet()
|
|
|
|
|
{
|
2019-09-12 11:08:25 +02:00
|
|
|
return $this->belongsTo('App\Models\Sujet', 'sujet_id');
|
2019-07-25 09:43:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the user that owns the recherche.
|
|
|
|
|
*/
|
|
|
|
|
public function user()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('App\User', 'id');
|
|
|
|
|
}
|
|
|
|
|
}
|