Fix extraneous MySQL calls being made for each server record listed on page.

This commit is contained in:
Dane Everitt 2017-04-14 01:25:56 -04:00
parent a2b451b990
commit 26557b6a3f
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class IndexController extends Controller
*/
public function getIndex(Request $request)
{
$servers = $request->user()->access();
$servers = $request->user()->access()->with('user');
if (! is_null($request->input('query'))) {
$servers->search($request->input('query'));