/** * Get the list of all security groups * @return getGroups view */ public function getGroups() { //Get All security groups $ec2 = App::make('aws')->get('ec2'); $security_groups = $ec2->describeSecurityGroups(); $security_groups = $security_groups['SecurityGroups']; //Get all active leases $leases = Lease::get(); //get all active Invites $invites = Invite::get(); return View::make('getGroups')->with('security_groups', $security_groups)->with('leases', $leases)->with('invites', $invites); }