'datetime', 'billet_id' => 'int' ]; protected $fillable = [ 'COM_DATE', 'COM_AUTEUR', 'COM_CONTENU', 'billet_id', 'user_id' ]; protected $hidden = [ 'id', 'created_at', 'updated_at', 'billet_id' ]; public function billet() { return $this->belongsTo(Billet::class); } public function user() { return $this->belongsTo(User::class); } }