Add public community lists browse page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a583a13da1
commit
0eab3e8dbf
@@ -10,6 +10,18 @@ use Illuminate\Support\Str;
|
||||
|
||||
class ListController extends Controller
|
||||
{
|
||||
public function community()
|
||||
{
|
||||
$lists = UserList::where('is_public', true)
|
||||
->with('user')
|
||||
->withCount('listGames')
|
||||
->latest()
|
||||
->paginate(24);
|
||||
|
||||
return view('lists.community', compact('lists'));
|
||||
}
|
||||
|
||||
|
||||
public function index()
|
||||
{
|
||||
$lists = auth()->user()->lists()->withCount('listGames')->latest()->get();
|
||||
|
||||
Reference in New Issue
Block a user