app/Http/Controllers/Admin/AdminPartnerController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $users = User::where('role',2)->get();
        return view('admin.partners.partners')->with('users',$users);
    }
public function index ( ) { $ users = User :: where ( 'role' , 2 ) -> get ( ) ; return view ( 'admin.partners.partners' ) -> with ( 'users' , $ users ) ; }
Display a listing of the resource.
Display a listing of the resource .