예제 #1
0
 public function recommendations($id)
 {
     $recommendations = ActivePrinciple::find($id)->recommendations;
     return Response::json(array('recommendations' => $recommendations->toArray()));
 }