profile with user

This commit is contained in:
2026-05-04 16:41:34 +07:00
parent 154390319a
commit f2ff0b5bea
@@ -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}%"]);
})