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