modified: SRC/app/Http/Controllers/GameController.php

modified:   SRC/app/Http/routes.php
	modified:   SRC/app/Models/User.php
This commit is contained in:
Malibu
2015-03-10 16:10:52 +01:00
parent 12a0a618a6
commit b9202d2070
3 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,12 @@ class GameController extends Controller {
return view('home',['referent' => $res]);
}
public function findReferents($reg) {
$res = User::referents()->name($reg)->get();
return Response::json($res->toArray());
}
/**
* Show referent games
*