public function index(Manager $fractal, AddendumfinancialTransformer $addendumfinancialTransformer) { // show all $records = Addendumfinancial::all(); $collection = new Collection($records, $addendumfinancialTransformer); $data = $fractal->createData($collection)->toArray(); return $this->respond($data); }