Skip to content

Commit

Permalink
refs #97 Fixed display placeholder for post preview
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Mar 31, 2024
1 parent 6d25cb2 commit 1def7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function show(Post $post)
public function preview(Request $request)
{
return turbo_stream()->replace('post-preview', view('post.preview', [
'title' => $request->input('title', 'Заголовок'),
'content' => $request->input('content', 'Текст публикации'),
'title' => $request->input('title') ?? 'Заголовок',
'content' => $request->input('content') ?? 'Текст публикации',
]));
}

Expand Down

0 comments on commit 1def7f3

Please sign in to comment.