Merge branch 'main' of https://git.probindo.com/Probindo/database-pertani-web
This commit is contained in:
@@ -40,7 +40,7 @@ class ProfileController extends Controller
|
|||||||
|
|
||||||
$size = $request->integer('size') ?: 10;
|
$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);
|
$search = strtolower($search);
|
||||||
$q->whereRaw('lower(nama) like ?', ["%{$search}%"]);
|
$q->whereRaw('lower(nama) like ?', ["%{$search}%"]);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user