feat:complete comments in tourShow

This commit is contained in:
2026-08-17 18:20:38 -07:00
parent c070681830
commit 914c1aedbd
3 changed files with 55 additions and 7 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class CommentController extends Controller
$data = $request->validated();
Comment::create([
$relation,
...$relation,
'user_id' => auth()->id(),
'guest_name' => auth()->check() ? null : $data['guest_name'],
'guest_email' => auth()->check() ? null : $data['guest_email'],