ldc-dam/app/Models/Recherche.php

25 lines
431 B
PHP
Raw Normal View History

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