Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(PostInterface $postRepository)
 {
     // Get posts
     $posts = $postRepository->paginate();
     return view('post.index', ['posts' => $posts]);
 }