This commit is contained in:
2026-05-05 13:38:08 +07:00
@@ -40,7 +40,7 @@ class ProfileController extends Controller
$size = $request->integer('size') ?: 10;
$listProfile = Profile::when($request->search, function ($q, $search) {
$listProfile = Profile::with('user')->when($request->search, function ($q, $search) {
$search = strtolower($search);
$q->whereRaw('lower(nama) like ?', ["%{$search}%"]);
})