DEV Community

loading...

Discussion on: Laravel API Resource + Vue.js Pagination (Part One)

Collapse
kp profile image
KP

@fwartner thanks! Is there a part 2?

Basically I'm trying to paginate this..any ideas how to do that?

        return new PostResource(
            Post::where([
                ['status', '=', 'published'],
                ['is_removed_by_admin', '=', '0'],
            ])
                ->select('id', 'title')
                ->get()
        );