app/Http/Controllers/SuperAdmin/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::role('admin')->get();
        return view('superadmin.users.index', compact('users'));
    }
public function index ( ) { $ users = User :: role ( 'admin' ) -> get ( ) ; return view ( 'superadmin.users.index' , compact ( 'users' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .