This commit is contained in:
alexandre-pereira
2015-03-17 17:22:11 +01:00
parent ce899d81c1
commit e2b3b2ce45
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ class HomeController extends Controller {
public function choisirRef()
{
return view('frontend/home',['referents' => Referent::get()]);
$refs = Referent::take(5)->select(['nom', 'prenom', 'image', 'id'])->get();
return view('frontend/home',['referents' => $refs]);
}
public function changerRef($idRef)