Skip to content

Commit

Permalink
Compact the front matter
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 12, 2024
1 parent 9f7b242 commit 461b389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PostAuthorPage extends InMemoryPage

public function __construct(PostAuthor $author)
{
parent::__construct(DynamicBlogPostPageHelper::authorBaseRouteKey()."/$author->username");
parent::__construct(DynamicBlogPostPageHelper::authorBaseRouteKey()."/$author->username", compact('author'));
}

public function getBladeView(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PostAuthorsPage extends InMemoryPage

public function __construct(Collection $authors)
{
parent::__construct(DynamicBlogPostPageHelper::authorBaseRouteKey());
parent::__construct(DynamicBlogPostPageHelper::authorBaseRouteKey(), compact('authors'));

$this->authors = $authors;
}
Expand Down

0 comments on commit 461b389

Please sign in to comment.