'bool' ]; // * RELATIONSHIPS /** * BelongsToMany users relation * * The users that belong to the sujet. * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function users() { return $this->belongsToMany(User::class); } /** * HasMany dossiers relation * * Get the dossier for the sujet. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function dossiers() { return $this->hasMany(Dossier::class); } /** * HasMany variantes relation * * Get the variantes for the sujet. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function variantes() { return $this->hasMany(Variante::class, 'sujet_id', 'codeSujet'); } /** * HasMany typeVues relation * * Get the typeVue for the sujet. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function typeVues() { return $this->hasMany(TypeVue::class, 'sujet_id', 'codeSujet'); } /** * HasMany media relation * * Get the media for the sujet. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function mediaList() { return $this->hasMany(Media::class); } /** * BelongsToMany formats relation * * The formats that belong to the sujet. * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function formats() { return $this->belongsToMany(Format::class, 'sujet_format', 'sujet_id'); } /** * HasMany recherches relation * * Get the recherches for the sujet. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function recherches() { return $this->hasMany(Recherche::class); } }