select(\DB::raw(1)) ->from('app_restrictions') ->whereColumn('app_restrictions.app_id', 'apps.id') ->where('app_restrictions.email', $user->email); })->orderBy('name', 'asc')->get(); return view('dashboard', compact('user', 'services')); } }