public function index() { $scholarships = Scholarship::all(); $resource = new Collection($scholarships, new ScholarshipTransformer(), 'scholarships'); return $this->fractal()->createData($resource)->toJson(); }