Files
hatame.andarza09/app/Http/Controllers/CommentController.php
T
hatame 6302570d75 git add .
git commit "Implement authentication flow and initialize home page hero section"
2026-08-16 14:51:49 +03:30

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'));
}
}