List articles by author

You can filter pages by their author. You can find this functionality in App\Http\Blog\ArticlesAuthorController.php.

public function index(Request $request, User $user)
    $author = User::find($user->id);
    $articles = \App\Article::published()->publishedUntilToday()->author($user->id)->paginate(10);

    return view('blog.articles_author', compact(['articles', 'author']));

The Resources\Views\Blog\Articles_author.blade.php gets and shows the articles written by an author.

<div class="row">
  <div class="col-md-9 text-left">
    <h2 class="card-title"><span class="font-weight-light">{{ __('Articles by ') }}</span>{{ $user->name }}</h2>
    <h4>{{ $user->about }}</h4>
  <div class="col-md-3">
    <div class="card-avatar">
      <a href="{{ route('', $user->slug) }}">
        <img class="img" src="{{ $user->profilePicture() }}">
      <div class="ripple-container"></div>