modifié : SRC/app/Http/Controllers/ReferentController.php

modifié :         SRC/public/js/getListeOeuvre.js
This commit is contained in:
sidya82
2015-02-19 16:50:36 +01:00
parent 94a2348737
commit d41fdb2815
2 changed files with 15 additions and 13 deletions

View File

@ -5,6 +5,7 @@ use Input;
use Request;
use App\ListeOeuvre;
use App\AssoListeAOeuvre;
use Response;
class ReferentController extends Controller {
@ -82,7 +83,7 @@ class ReferentController extends Controller {
public function showListeOeuvres($id)
{
return $listeoeuvres = ListeOeuvre::currentUser()->get()[0]->oeuvres()->toJson();
return Response::json(ListeOeuvre::currentUser()->get()[0]->oeuvres->toArray());
}
public function deleteListeOeuvre()