ldc-dam/app/Models/Recherche.php
Jérémy Munsch 9767e62c72
Update NPM deps and webpack.mix.js
composer require ldc/web-status-checker-laravel remove Old static status checker

Fix ImportMedia

WIP commands OK

many fixes

Fix and try to optimize folder component

Fix front icons + actions based on icons

Favico

front fix alert

Fix Media upload on depot

fix folder component buttons

Full front fix with perf due tu vuejs

Download medias

Navigate within medias superfix

Move media + loader

isLocked boolean and remove media fix

Folder scroll fix

arcadia link color red

Fix panier show external

Tons of fixes back as front

REwrited all
2022-07-22 17:00:48 +02:00

43 lines
817 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Recherche extends Model
{
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'filters' => 'object'
];
// * RELATIONSHIPS
/**
* BelongsTo sujet relation
*
* Get the sujet that owns the recherche.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function sujet()
{
return $this->belongsTo(Sujet::class, 'sujet_id');
}
/**
* BelongsTo user relation
*
* Get the user that owns the recherche.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class, 'user_id');
}
}