app/Http/Controllers/Admin/UserController.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::with('role')->get();
        return view('admin.home.admins',compact('users'));
    }
public function index ( ) { $ users = User :: with ( 'role' ) -> get ( ) ; return view ( 'admin.home.admins' , compact ( 'users' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//echo "string";exit(); //$users=\App\User::all(); //$users=\App\User::with('role')->get(); //->where('iscustomer',0)->get(); //return view('admins');