protected function generateContent($stub, $class)
    {
        $namespace = config('admin.controllers.namespace', 'LaravelAdminPanel\\Http\\Controllers');

        $content = str_replace(
            'DummyNamespace',
            $namespace,
            $stub
        );

        $content = str_replace(
            'FullBaseDummyClass',
            'LaravelAdminPanel\\Http\\Controllers\\'.$class,
            $content
        );

        $content = str_replace(
            'BaseDummyClass',
            'Base'.$class,
            $content
        );

        $content = str_replace(
            'DummyClass',
            $class,
            $content
        );

        return $content;
    }
protected function generateContent($stub, $class)
    {
        $namespace = config('admin.controllers.namespace', 'LaravelAdminPanel\\Http\\Controllers');

        $content = str_replace(
            'DummyNamespace',
            $namespace,
            $stub
        );

        $content = str_replace(
            'FullBaseDummyClass',
            'LaravelAdminPanel\\Http\\Controllers\\'.$class,
            $content
        );

        $content = str_replace(
            'BaseDummyClass',
            'Base'.$class,
            $content
        );

        $content = str_replace(
            'DummyClass',
            $class,
            $content
        );

        return $content;
    }
protected function generateContent ( $ stub , $ class ) { $ namespace = config ( 'admin.controllers.namespace' , 'LaravelAdminPanel\\Http\\Controllers' ) ; $ content = str_replace ( 'DummyNamespace' , $ namespace , $ stub ) ; $ content = str_replace ( 'FullBaseDummyClass' , 'LaravelAdminPanel\\Http\\Controllers\\' . $ class , $ content ) ; $ content = str_replace ( 'BaseDummyClass' , 'Base' . $ class , $ content ) ; $ content = str_replace ( 'DummyClass' , $ class , $ content ) ; return $ content ; }
Generate real content from stub.

@param $stub
@param $class

@return mixed
Generate real content from stub .