findAllWithRelation() public méthode

Find all blog with category.
public findAllWithRelation ( ) : Illuminate\Database\Eloquent\Collection | Blog[]
Résultat Illuminate\Database\Eloquent\Collection | Learner\Models\Blog[]
 /**
  * Get all blogs with relation.
  *
  * /admin/blogs get
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function index()
 {
     $blogs = $this->blogs->findAllWithRelation();
     return $this->responseJson(compact('blogs'));
 }