21 lines
453 B
PHP
21 lines
453 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Account;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Comment;
|
|
use Illuminate\Http\Request;
|
|
|
|
class CommentHistoryController extends Controller
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
$comments = Comment::where('user_id', auth()->id())
|
|
->with(['tour', 'flight'])
|
|
->latest()
|
|
->paginate(10);
|
|
return view('account.comment-history', compact('comments'));
|
|
}
|
|
}
|