/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $user = User::getAuthUser();
     $sessions = Session::where('team_id', Input::get('team_id'))->paginate(20);
     return response()->json($sessions, 200);
 }
示例#2
0
 public function getInfoSession($sessionId)
 {
     return Session::where('id_Session', '=', $sessionId)->first();
 }