/** @api */ function keyword($name) { return Keyword::get($name); }
/** * Display a listing of the resource. (as JSON) * * @return Response */ public function index() { //return Response::json(Route::input()); return Response::json(Keyword::get()); }
function convert_assoc_to_map($assoc) { $map = new Map(); foreach ($assoc as $key => $value) { $map[Keyword::get($key)] = $value; } return $map; }