Example #1
0
 public function getAllLocalizations(Request $request, $id)
 {
     $collection = Localization::where('localizable_id', '=', $id)->get();
     if ($collection->count() < 1) {
         throw new NotFoundHttpException('No localizations found for entity.');
     }
     return $this->getResponse()->transformer($this->getTransformer())->collection($collection);
 }