/** * Display a listing of the resource. * * @return \Appkr\Fractal\Response */ public function index() { return $this->respond->withPagination($this->model->with('user')->latest()->paginate(25), new TodoTransformer()); }