Ejemplo n.º 1
0
 /**
  * Return the json to populate the attachment list for a context
  */
 public function getByModel(Request $request)
 {
     $attachments = Attachment::getByModel($request->get('model'), $request->get('model_id'), $request->get('context'));
     return response()->json($attachments);
 }