6302570d75
git commit "Implement authentication flow and initialize home page hero section"
22 lines
412 B
PHP
22 lines
412 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Comment;
|
|
use Illuminate\Http\Request;
|
|
|
|
class CommentController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$comments=Comment::query()
|
|
->where('user_id',auth()->id())
|
|
->with('tour')
|
|
->latest()
|
|
->paginate(4);
|
|
|
|
return view('account.users.comments.index',compact('comments'));
|
|
|
|
}
|
|
}
|