public function index($category_id =0,$page_size = 10)
{
$articles = Article::with('getCategory')->where('category_id',$category_id)->paginate($page_size);
return $this->response->paginator($articles,new ArticleTransformer(),function ($resource,$fractal){
return $fractal->setSerializer(new ArticleSerializer());
});
}
Argument 3 passed to Dingo\\Api\\Http\\Response\\Factory::paginator() must be of the type array, object given, called in /Users/abdureshid/Projects/TsCms/app/Api/Controllers/ArticleController.php on line 26 and defined