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