Laravel version update
Laravel version update
This commit is contained in:
		| @@ -67,7 +67,7 @@ class FilterController extends Controller | ||||
|                         } | ||||
|                     } | ||||
|                 }) | ||||
|                 ->lists('ticket_id') | ||||
|                 ->pluck('ticket_id') | ||||
|                 ->toArray(); | ||||
|  | ||||
|         return $query; | ||||
|   | ||||
| @@ -1763,7 +1763,7 @@ class TicketController extends Controller | ||||
|     public function autosearch($id) | ||||
|     { | ||||
|         $term = \Input::get('term'); | ||||
|         $user = \App\User::where('email', 'LIKE', '%'.$term.'%')->lists('email'); | ||||
|         $user = \App\User::where('email', 'LIKE', '%'.$term.'%')->pluck('email'); | ||||
|         echo json_encode($user); | ||||
|     } | ||||
|  | ||||
| @@ -1776,7 +1776,7 @@ class TicketController extends Controller | ||||
|      */ | ||||
|     public function autosearch2(User $user) | ||||
|     { | ||||
|         $user = $user->lists('email'); | ||||
|         $user = $user->pluck('email'); | ||||
|         echo json_encode($user); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -257,7 +257,7 @@ class UserController extends Controller | ||||
|             $email_mandatory = CommonSettings::select('status')->where('option_name', '=', 'email_mandatory')->first(); | ||||
|             $location = GeoIP::getLocation(); | ||||
|             $phonecode = $code->where('iso', '=', $location->iso_code)->first(); | ||||
|             $org = Organization::lists('name', 'id')->toArray(); | ||||
|             $org = Organization::pluck('name', 'id')->toArray(); | ||||
|  | ||||
|             return view('themes.default1.agent.helpdesk.user.create', compact('org', 'settings', 'email_mandatory'))->with('phonecode', $phonecode->phonecode); | ||||
|         } catch (Exception $e) { | ||||
| @@ -647,9 +647,9 @@ class UserController extends Controller | ||||
|             $phonecode = $code->where('iso', '=', $location->iso_code)->first(); | ||||
|             $orgs = Organization::all(); | ||||
|             // dd($org); | ||||
|             $organization_id = User_org::where('user_id', '=', $id)->lists('org_id')->first(); | ||||
|             $organization_id = User_org::where('user_id', '=', $id)->pluck('org_id')->first(); | ||||
|  | ||||
|             // $org_name=Organization::where('id','=',$org_id)->lists('name')->first(); | ||||
|             // $org_name=Organization::where('id','=',$org_id)->pluck('name')->first(); | ||||
|             // dd($org_name); | ||||
|  | ||||
|             return view('themes.default1.agent.helpdesk.user.edit', compact('users', 'orgs', '$settings', '$email_mandatory', 'organization_id'))->with('phonecode', $phonecode->phonecode); | ||||
| @@ -833,7 +833,7 @@ class UserController extends Controller | ||||
|         $org_name = Input::get('org'); | ||||
|  | ||||
|         if ($org_name) { | ||||
|             $org = Organization::where('name', '=', $org_name)->lists('id')->first(); | ||||
|             $org = Organization::where('name', '=', $org_name)->pluck('id')->first(); | ||||
|             if ($org) { | ||||
|                 $user_org = new User_org(); | ||||
|                 $user_org->org_id = $org; | ||||
| @@ -854,7 +854,7 @@ class UserController extends Controller | ||||
|         $org_name = Input::get('org'); | ||||
|  | ||||
|         if ($org_name) { | ||||
|             $org = Organization::where('name', '=', $org_name)->lists('id')->first(); | ||||
|             $org = Organization::where('name', '=', $org_name)->pluck('id')->first(); | ||||
|             if ($org) { | ||||
|                 $user_org = User_org::where('user_id', '=', $id)->first(); | ||||
|                 $user_org->org_id = $org; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma