feat:compele comments for dashboard side
This commit is contained in:
@@ -31,6 +31,7 @@ class CommentController extends Controller
|
||||
$data = $request->validated();
|
||||
|
||||
Comment::create([
|
||||
|
||||
'tour_id' => $tour->id,
|
||||
'user_id' => auth()->id(),
|
||||
'guest_name' => auth()->guest() ? $data['guest_name'] : null,
|
||||
@@ -41,5 +42,7 @@ class CommentController extends Controller
|
||||
|
||||
return back()->with('success', 'نظر شما ثبت شد.');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user