@extends('layouts.app') @section('content')
@foreach($posts as $post)

{{ $post->user->username }} {{ $post->caption }}

@endforeach
{{ $posts->links() }}
@endsection