X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/8833b5bc3bc717c0303fb1a61a15c97f10b283ae..refs/pull/2510/head:/app/Http/Controllers/UserSearchController.php diff --git a/app/Http/Controllers/UserSearchController.php b/app/Http/Controllers/UserSearchController.php index 1ff056cd2..a0dfbd8d0 100644 --- a/app/Http/Controllers/UserSearchController.php +++ b/app/Http/Controllers/UserSearchController.php @@ -19,13 +19,13 @@ class UserSearchController extends Controller ->take(20); if (!empty($search)) { - $query->where(function(Builder $query) use ($search) { + $query->where(function (Builder $query) use ($search) { $query->where('email', 'like', '%' . $search . '%') ->orWhere('name', 'like', '%' . $search . '%'); }); } $users = $query->get(); - return view('form.user-select-list', compact('users')); + return view('components.user-select-list', compact('users')); } }