public function index(Manager $fractal, UploadTransformer $uploadTransformer) { // show all $records = Upload::all(); $collection = new Collection($records, $uploadTransformer); $data = $fractal->createData($collection)->toArray(); return $this->respond($data); }
public static function getAllUploads() { return Upload::all(); }