git add .
git commit "Implement authentication flow and initialize home page hero section"
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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'));
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user