初始化

This commit is contained in:
2026-08-08 18:27:38 +08:00
parent efc150c937
commit 060eb79c09
336 changed files with 24613 additions and 15 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\ForumThread;
use Illuminate\View\View;
class ForumThreadController extends Controller
{
public function index(): View
{
$threads = ForumThread::with('user', 'board')
->orderByDesc('created_at')
->paginate(20);
return view('admin.forum.threads', compact('threads'));
}
public function destroy(ForumThread $thread)
{
$thread->delete();
return redirect()->route('admin.forum.threads.index')->with('success', '帖子已删除');
}
}