public function findAllWithRelation();
/** * Get all blogs with relation. * * /admin/blogs get * * @return \Illuminate\Http\JsonResponse */ public function index() { $blogs = $this->blogs->findAllWithRelation(); return $this->responseJson(compact('blogs')); }