app/Http/Controllers/Dashboard/Users.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()
    {
        $moduleName = $this->getNameFromController();
         $users = User::paginate(10);
        return view('Dashboard.users.index' , compact('users' , 'moduleName') );
    }
public function index ( ) { $ moduleName = $ this -> getNameFromController ( ) ; $ users = User :: paginate ( 10 ) ; return view ( 'Dashboard.users.index' , compact ( 'users' , 'moduleName' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .