/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { header("Access-Control-Allow-Origin: *"); return BoardOfDirectors::where('active', 1)->get(); }
public function getBoardofDirectors() { try { return BoardOfDirectors::where('active', 1)->get(); } catch (\Exception $e) { throw new LambdaException('The Board could not be found', null, $e); } }