Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Ppease complete the series of laravel vuejs
sure next part will come tomorrow
Thanks you man !!!
welcome buddy
the filter is problematic with pagination
filter means search right ? you have return data as paginate instead of all data
@@EasyCodeSardar yes, I have return data as paginate instead of all data but same error. in console: *posts?page=undefined*
i think you forgot pass "page" in methods like allposts(page)
@@EasyCodeSardar in component async getPosts(page) { await axios.get('api/posts?page=' + page, {params: {keywords: this.keywords}}) .then(res => { this.posts = res; console.log(res.data); });
@@EasyCodeSardar in controller if (!empty($request->keywords)) { return Post::with('category', 'user', 'comments') ->where('title', 'like', '%'. $request->keywords . '%') ->paginate(2); } return Post::with('category', 'user', 'comments')->paginate(2);
Ppease complete the series of laravel vuejs
sure next part will come tomorrow
Thanks you man !!!
welcome buddy
the filter is problematic with pagination
filter means search right ? you have return data as paginate instead of all data
@@EasyCodeSardar yes, I have return data as paginate instead of all data but same error.
in console: *posts?page=undefined*
i think you forgot pass "page" in methods like allposts(page)
@@EasyCodeSardar in component async getPosts(page) {
await axios.get('api/posts?page=' + page, {params: {keywords: this.keywords}})
.then(res => {
this.posts = res;
console.log(res.data);
});
@@EasyCodeSardar in controller
if (!empty($request->keywords)) {
return Post::with('category', 'user', 'comments')
->where('title', 'like', '%'. $request->keywords . '%')
->paginate(2);
}
return Post::with('category', 'user', 'comments')->paginate(2);