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