feat(tour): implement tour details page with comments system and dynamic sidebar
This commit is contained in:
@@ -25,5 +25,19 @@ class ProfileController extends Controller
|
||||
return response()->json($cities);
|
||||
}
|
||||
|
||||
public function comments()
|
||||
{
|
||||
$comments = auth()->user()
|
||||
->comments()
|
||||
->with([
|
||||
'tour',
|
||||
'flight'
|
||||
])
|
||||
->orderByDesc('created_at')
|
||||
->paginate(10);
|
||||
|
||||
return view('account.comments' , compact('comments'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user