user listing with pagination

This commit is contained in:
pesu98
2026-05-11 11:18:25 +08:00
parent bde907f7cd
commit 7a6982570e
4 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\View\View;
class UserController extends Controller
{
public function index(): View
{
$users = User::orderBy('name')->paginate(10);
return view('users.index', compact('users'));
}
}