diff --git a/Modules/Demo/app/Http/Controllers/.gitkeep b/Modules/Demo/app/Http/Controllers/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/app/Http/Controllers/Admin/Index.php b/Modules/Demo/app/Http/Controllers/Admin/Index.php
deleted file mode 100644
index 7959525..0000000
--- a/Modules/Demo/app/Http/Controllers/Admin/Index.php
+++ /dev/null
@@ -1,8 +0,0 @@
-registerCommands();
- $this->registerCommandSchedules();
- $this->registerTranslations();
- $this->registerConfig();
- $this->registerViews();
- $this->loadMigrationsFrom(module_path($this->name, 'database/migrations'));
- }
-
- /**
- * Register the service provider.
- */
- public function register(): void
- {
- $this->app->register(EventServiceProvider::class);
- $this->app->register(RouteServiceProvider::class);
- }
-
- /**
- * Register commands in the format of Command::class
- */
- protected function registerCommands(): void
- {
- // $this->commands([]);
- }
-
- /**
- * Register command Schedules.
- */
- protected function registerCommandSchedules(): void
- {
- // $this->app->booted(function () {
- // $schedule = $this->app->make(Schedule::class);
- // $schedule->command('inspire')->hourly();
- // });
- }
-
- /**
- * Register translations.
- */
- public function registerTranslations(): void
- {
- $langPath = resource_path('lang/modules/'.$this->nameLower);
-
- if (is_dir($langPath)) {
- $this->loadTranslationsFrom($langPath, $this->nameLower);
- $this->loadJsonTranslationsFrom($langPath);
- } else {
- $this->loadTranslationsFrom(module_path($this->name, 'lang'), $this->nameLower);
- $this->loadJsonTranslationsFrom(module_path($this->name, 'lang'));
- }
- }
-
- /**
- * Register config.
- */
- protected function registerConfig(): void
- {
- $configPath = module_path($this->name, config('modules.paths.generator.config.path'));
-
- if (is_dir($configPath)) {
- $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($configPath));
-
- foreach ($iterator as $file) {
- if ($file->isFile() && $file->getExtension() === 'php') {
- $config = str_replace($configPath.DIRECTORY_SEPARATOR, '', $file->getPathname());
- $config_key = str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $config);
- $segments = explode('.', $this->nameLower.'.'.$config_key);
-
- // Remove duplicated adjacent segments
- $normalized = [];
- foreach ($segments as $segment) {
- if (end($normalized) !== $segment) {
- $normalized[] = $segment;
- }
- }
-
- $key = ($config === 'config.php') ? $this->nameLower : implode('.', $normalized);
-
- $this->publishes([$file->getPathname() => config_path($config)], 'config');
- $this->merge_config_from($file->getPathname(), $key);
- }
- }
- }
- }
-
- /**
- * Merge config from the given path recursively.
- */
- protected function merge_config_from(string $path, string $key): void
- {
- $existing = config($key, []);
- $module_config = require $path;
-
- config([$key => array_replace_recursive($existing, $module_config)]);
- }
-
- /**
- * Register views.
- */
- public function registerViews(): void
- {
- $viewPath = resource_path('views/modules/'.$this->nameLower);
- $sourcePath = module_path($this->name, 'resources/views');
-
- $this->publishes([$sourcePath => $viewPath], ['views', $this->nameLower.'-module-views']);
-
- $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->nameLower);
-
- Blade::componentNamespace(config('modules.namespace').'\\' . $this->name . '\\View\\Components', $this->nameLower);
- }
-
- /**
- * Get the services provided by the provider.
- */
- public function provides(): array
- {
- return [];
- }
-
- private function getPublishableViewPaths(): array
- {
- $paths = [];
- foreach (config('view.paths') as $path) {
- if (is_dir($path.'/modules/'.$this->nameLower)) {
- $paths[] = $path.'/modules/'.$this->nameLower;
- }
- }
-
- return $paths;
- }
-}
diff --git a/Modules/Demo/app/Providers/EventServiceProvider.php b/Modules/Demo/app/Providers/EventServiceProvider.php
deleted file mode 100644
index 1e31c61..0000000
--- a/Modules/Demo/app/Providers/EventServiceProvider.php
+++ /dev/null
@@ -1,27 +0,0 @@
->
- */
- protected $listen = [];
-
- /**
- * Indicates if events should be discovered.
- *
- * @var bool
- */
- protected static $shouldDiscoverEvents = true;
-
- /**
- * Configure the proper event listeners for email verification.
- */
- protected function configureEmailVerification(): void {}
-}
diff --git a/Modules/Demo/app/Providers/RouteServiceProvider.php b/Modules/Demo/app/Providers/RouteServiceProvider.php
deleted file mode 100644
index 1383315..0000000
--- a/Modules/Demo/app/Providers/RouteServiceProvider.php
+++ /dev/null
@@ -1,61 +0,0 @@
-mapApiRoutes();
- $this->mapWebRoutes();
- $this->mapAdminRoutes();
- }
-
- /**
- * Define the "web" routes for the application.
- *
- * These routes all receive session state, CSRF protection, etc.
- */
- protected function mapWebRoutes(): void
- {
- Route::middleware('web')->group(module_path($this->name, '/routes/web.php'));
- }
-
- /**
- * Define the "api" routes for the application.
- *
- * These routes are typically stateless.
- */
- protected function mapApiRoutes(): void
- {
- Route::middleware('api')->prefix('api')->name('api.')->group(module_path($this->name, '/routes/api.php'));
- }
-
- /**
- * Define the "api" routes for the application.
- *
- * These routes are typically stateless.
- */
- protected function mapAdminRoutes(): void
- {
- Route::middleware('admin')->prefix('admin')->name('admin.')->group(module_path($this->name, '/routes/admin.php'));
- }
-}
diff --git a/Modules/Demo/composer.json b/Modules/Demo/composer.json
deleted file mode 100644
index b711984..0000000
--- a/Modules/Demo/composer.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "name": "nwidart/demo",
- "description": "",
- "authors": [
- {
- "name": "Nicolas Widart",
- "email": "n.widart@gmail.com"
- }
- ],
- "extra": {
- "laravel": {
- "providers": [],
- "aliases": {
-
- }
- }
- },
- "autoload": {
- "psr-4": {
- "Modules\\Demo\\": "app/",
- "Modules\\Demo\\Database\\Factories\\": "database/factories/",
- "Modules\\Demo\\Database\\Seeders\\": "database/seeders/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Modules\\Demo\\Tests\\": "tests/"
- }
- }
-}
diff --git a/Modules/Demo/config/.gitkeep b/Modules/Demo/config/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/config/config.php b/Modules/Demo/config/config.php
deleted file mode 100644
index 37aee66..0000000
--- a/Modules/Demo/config/config.php
+++ /dev/null
@@ -1,5 +0,0 @@
- 'Demo',
-];
diff --git a/Modules/Demo/database/factories/.gitkeep b/Modules/Demo/database/factories/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/database/migrations/.gitkeep b/Modules/Demo/database/migrations/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/database/seeders/.gitkeep b/Modules/Demo/database/seeders/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/database/seeders/DemoDatabaseSeeder.php b/Modules/Demo/database/seeders/DemoDatabaseSeeder.php
deleted file mode 100644
index e414036..0000000
--- a/Modules/Demo/database/seeders/DemoDatabaseSeeder.php
+++ /dev/null
@@ -1,16 +0,0 @@
-call([]);
- }
-}
diff --git a/Modules/Demo/module.json b/Modules/Demo/module.json
deleted file mode 100644
index 797d87e..0000000
--- a/Modules/Demo/module.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "name": "Demo",
- "alias": "demo",
- "description": "",
- "keywords": [],
- "priority": 0,
- "providers": [
- "Modules\\Demo\\Providers\\DemoServiceProvider"
- ],
- "files": []
-}
diff --git a/Modules/Demo/package.json b/Modules/Demo/package.json
deleted file mode 100644
index d6fbfc8..0000000
--- a/Modules/Demo/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "private": true,
- "type": "module",
- "scripts": {
- "dev": "vite",
- "build": "vite build"
- },
- "devDependencies": {
- "axios": "^1.1.2",
- "laravel-vite-plugin": "^0.7.5",
- "sass": "^1.69.5",
- "postcss": "^8.3.7",
- "vite": "^4.0.0"
- }
-}
diff --git a/Modules/Demo/resources/assets/.gitkeep b/Modules/Demo/resources/assets/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/resources/assets/js/app.js b/Modules/Demo/resources/assets/js/app.js
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/resources/assets/sass/app.scss b/Modules/Demo/resources/assets/sass/app.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/resources/views/.gitkeep b/Modules/Demo/resources/views/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/resources/views/components/layouts/master.blade.php b/Modules/Demo/resources/views/components/layouts/master.blade.php
deleted file mode 100644
index fbfd12b..0000000
--- a/Modules/Demo/resources/views/components/layouts/master.blade.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
- Demo Module - {{ config('app.name', 'Laravel') }}
-
-
-
-
-
-
-
-
-
- {{-- Vite CSS --}}
- {{-- {{ module_vite('build-demo', 'resources/assets/sass/app.scss') }} --}}
-
-
-
- {{ $slot }}
-
- {{-- Vite JS --}}
- {{-- {{ module_vite('build-demo', 'resources/assets/js/app.js') }} --}}
-
-
diff --git a/Modules/Demo/resources/views/index.blade.php b/Modules/Demo/resources/views/index.blade.php
deleted file mode 100644
index b6d0623..0000000
--- a/Modules/Demo/resources/views/index.blade.php
+++ /dev/null
@@ -1,5 +0,0 @@
-
- Hello World
-
- Module: {!! config('demo.name') !!}
-
diff --git a/Modules/Demo/routes/.gitkeep b/Modules/Demo/routes/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/routes/admin.php b/Modules/Demo/routes/admin.php
deleted file mode 100644
index ff7eafd..0000000
--- a/Modules/Demo/routes/admin.php
+++ /dev/null
@@ -1,4 +0,0 @@
-group(function () {
- Route::resource('demos', DemoController::class)->names('demo');
-});
diff --git a/Modules/Demo/tests/Feature/.gitkeep b/Modules/Demo/tests/Feature/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/tests/Unit/.gitkeep b/Modules/Demo/tests/Unit/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/Modules/Demo/vite.config.js b/Modules/Demo/vite.config.js
deleted file mode 100644
index 0ccf436..0000000
--- a/Modules/Demo/vite.config.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import { defineConfig } from 'vite';
-import laravel from 'laravel-vite-plugin';
-import { readdirSync, statSync } from 'fs';
-import { join,relative,dirname } from 'path';
-import { fileURLToPath } from 'url';
-
-export default defineConfig({
- build: {
- outDir: '../../public/build-demo',
- emptyOutDir: true,
- manifest: true,
- },
- plugins: [
- laravel({
- publicDirectory: '../../public',
- buildDirectory: 'build-demo',
- input: [
- __dirname + '/resources/assets/sass/app.scss',
- __dirname + '/resources/assets/js/app.js'
- ],
- refresh: true,
- }),
- ],
-});
-// Scen all resources for assets file. Return array
-//function getFilePaths(dir) {
-// const filePaths = [];
-//
-// function walkDirectory(currentPath) {
-// const files = readdirSync(currentPath);
-// for (const file of files) {
-// const filePath = join(currentPath, file);
-// const stats = statSync(filePath);
-// if (stats.isFile() && !file.startsWith('.')) {
-// const relativePath = 'Modules/Demo/'+relative(__dirname, filePath);
-// filePaths.push(relativePath);
-// } else if (stats.isDirectory()) {
-// walkDirectory(filePath);
-// }
-// }
-// }
-//
-// walkDirectory(dir);
-// return filePaths;
-//}
-
-//const __filename = fileURLToPath(import.meta.url);
-//const __dirname = dirname(__filename);
-
-//const assetsDir = join(__dirname, 'resources/assets');
-//export const paths = getFilePaths(assetsDir);
-
-
-//export const paths = [
-// 'Modules/Demo/resources/assets/sass/app.scss',
-// 'Modules/Demo/resources/assets/js/app.js',
-//];
diff --git a/modules/Demo/app/Http/Controllers/.gitkeep b/modules/Demo/app/Http/Controllers/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/app/Http/Controllers/Admin/Index.php b/modules/Demo/app/Http/Controllers/Admin/Index.php
deleted file mode 100644
index 7959525..0000000
--- a/modules/Demo/app/Http/Controllers/Admin/Index.php
+++ /dev/null
@@ -1,8 +0,0 @@
-registerCommands();
- $this->registerCommandSchedules();
- $this->registerTranslations();
- $this->registerConfig();
- $this->registerViews();
- $this->loadMigrationsFrom(module_path($this->name, 'database/migrations'));
- }
-
- /**
- * Register the service provider.
- */
- public function register(): void
- {
- $this->app->register(EventServiceProvider::class);
- $this->app->register(RouteServiceProvider::class);
- }
-
- /**
- * Register commands in the format of Command::class
- */
- protected function registerCommands(): void
- {
- // $this->commands([]);
- }
-
- /**
- * Register command Schedules.
- */
- protected function registerCommandSchedules(): void
- {
- // $this->app->booted(function () {
- // $schedule = $this->app->make(Schedule::class);
- // $schedule->command('inspire')->hourly();
- // });
- }
-
- /**
- * Register translations.
- */
- public function registerTranslations(): void
- {
- $langPath = resource_path('lang/modules/'.$this->nameLower);
-
- if (is_dir($langPath)) {
- $this->loadTranslationsFrom($langPath, $this->nameLower);
- $this->loadJsonTranslationsFrom($langPath);
- } else {
- $this->loadTranslationsFrom(module_path($this->name, 'lang'), $this->nameLower);
- $this->loadJsonTranslationsFrom(module_path($this->name, 'lang'));
- }
- }
-
- /**
- * Register config.
- */
- protected function registerConfig(): void
- {
- $configPath = module_path($this->name, config('modules.paths.generator.config.path'));
-
- if (is_dir($configPath)) {
- $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($configPath));
-
- foreach ($iterator as $file) {
- if ($file->isFile() && $file->getExtension() === 'php') {
- $config = str_replace($configPath.DIRECTORY_SEPARATOR, '', $file->getPathname());
- $config_key = str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $config);
- $segments = explode('.', $this->nameLower.'.'.$config_key);
-
- // Remove duplicated adjacent segments
- $normalized = [];
- foreach ($segments as $segment) {
- if (end($normalized) !== $segment) {
- $normalized[] = $segment;
- }
- }
-
- $key = ($config === 'config.php') ? $this->nameLower : implode('.', $normalized);
-
- $this->publishes([$file->getPathname() => config_path($config)], 'config');
- $this->merge_config_from($file->getPathname(), $key);
- }
- }
- }
- }
-
- /**
- * Merge config from the given path recursively.
- */
- protected function merge_config_from(string $path, string $key): void
- {
- $existing = config($key, []);
- $module_config = require $path;
-
- config([$key => array_replace_recursive($existing, $module_config)]);
- }
-
- /**
- * Register views.
- */
- public function registerViews(): void
- {
- $viewPath = resource_path('views/modules/'.$this->nameLower);
- $sourcePath = module_path($this->name, 'resources/views');
-
- $this->publishes([$sourcePath => $viewPath], ['views', $this->nameLower.'-module-views']);
-
- $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->nameLower);
-
- Blade::componentNamespace(config('modules.namespace').'\\' . $this->name . '\\View\\Components', $this->nameLower);
- }
-
- /**
- * Get the services provided by the provider.
- */
- public function provides(): array
- {
- return [];
- }
-
- private function getPublishableViewPaths(): array
- {
- $paths = [];
- foreach (config('view.paths') as $path) {
- if (is_dir($path.'/modules/'.$this->nameLower)) {
- $paths[] = $path.'/modules/'.$this->nameLower;
- }
- }
-
- return $paths;
- }
-}
diff --git a/modules/Demo/app/Providers/EventServiceProvider.php b/modules/Demo/app/Providers/EventServiceProvider.php
deleted file mode 100644
index 1e31c61..0000000
--- a/modules/Demo/app/Providers/EventServiceProvider.php
+++ /dev/null
@@ -1,27 +0,0 @@
->
- */
- protected $listen = [];
-
- /**
- * Indicates if events should be discovered.
- *
- * @var bool
- */
- protected static $shouldDiscoverEvents = true;
-
- /**
- * Configure the proper event listeners for email verification.
- */
- protected function configureEmailVerification(): void {}
-}
diff --git a/modules/Demo/app/Providers/RouteServiceProvider.php b/modules/Demo/app/Providers/RouteServiceProvider.php
deleted file mode 100644
index 1383315..0000000
--- a/modules/Demo/app/Providers/RouteServiceProvider.php
+++ /dev/null
@@ -1,61 +0,0 @@
-mapApiRoutes();
- $this->mapWebRoutes();
- $this->mapAdminRoutes();
- }
-
- /**
- * Define the "web" routes for the application.
- *
- * These routes all receive session state, CSRF protection, etc.
- */
- protected function mapWebRoutes(): void
- {
- Route::middleware('web')->group(module_path($this->name, '/routes/web.php'));
- }
-
- /**
- * Define the "api" routes for the application.
- *
- * These routes are typically stateless.
- */
- protected function mapApiRoutes(): void
- {
- Route::middleware('api')->prefix('api')->name('api.')->group(module_path($this->name, '/routes/api.php'));
- }
-
- /**
- * Define the "api" routes for the application.
- *
- * These routes are typically stateless.
- */
- protected function mapAdminRoutes(): void
- {
- Route::middleware('admin')->prefix('admin')->name('admin.')->group(module_path($this->name, '/routes/admin.php'));
- }
-}
diff --git a/modules/Demo/composer.json b/modules/Demo/composer.json
deleted file mode 100644
index b711984..0000000
--- a/modules/Demo/composer.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "name": "nwidart/demo",
- "description": "",
- "authors": [
- {
- "name": "Nicolas Widart",
- "email": "n.widart@gmail.com"
- }
- ],
- "extra": {
- "laravel": {
- "providers": [],
- "aliases": {
-
- }
- }
- },
- "autoload": {
- "psr-4": {
- "Modules\\Demo\\": "app/",
- "Modules\\Demo\\Database\\Factories\\": "database/factories/",
- "Modules\\Demo\\Database\\Seeders\\": "database/seeders/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Modules\\Demo\\Tests\\": "tests/"
- }
- }
-}
diff --git a/modules/Demo/config/.gitkeep b/modules/Demo/config/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/config/config.php b/modules/Demo/config/config.php
deleted file mode 100644
index 37aee66..0000000
--- a/modules/Demo/config/config.php
+++ /dev/null
@@ -1,5 +0,0 @@
- 'Demo',
-];
diff --git a/modules/Demo/database/factories/.gitkeep b/modules/Demo/database/factories/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/database/migrations/.gitkeep b/modules/Demo/database/migrations/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/database/seeders/.gitkeep b/modules/Demo/database/seeders/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/database/seeders/DemoDatabaseSeeder.php b/modules/Demo/database/seeders/DemoDatabaseSeeder.php
deleted file mode 100644
index e414036..0000000
--- a/modules/Demo/database/seeders/DemoDatabaseSeeder.php
+++ /dev/null
@@ -1,16 +0,0 @@
-call([]);
- }
-}
diff --git a/modules/Demo/module.json b/modules/Demo/module.json
deleted file mode 100644
index 797d87e..0000000
--- a/modules/Demo/module.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "name": "Demo",
- "alias": "demo",
- "description": "",
- "keywords": [],
- "priority": 0,
- "providers": [
- "Modules\\Demo\\Providers\\DemoServiceProvider"
- ],
- "files": []
-}
diff --git a/modules/Demo/package.json b/modules/Demo/package.json
deleted file mode 100644
index d6fbfc8..0000000
--- a/modules/Demo/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "private": true,
- "type": "module",
- "scripts": {
- "dev": "vite",
- "build": "vite build"
- },
- "devDependencies": {
- "axios": "^1.1.2",
- "laravel-vite-plugin": "^0.7.5",
- "sass": "^1.69.5",
- "postcss": "^8.3.7",
- "vite": "^4.0.0"
- }
-}
diff --git a/modules/Demo/resources/assets/.gitkeep b/modules/Demo/resources/assets/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/resources/assets/js/app.js b/modules/Demo/resources/assets/js/app.js
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/resources/assets/sass/app.scss b/modules/Demo/resources/assets/sass/app.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/resources/views/.gitkeep b/modules/Demo/resources/views/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/resources/views/components/layouts/master.blade.php b/modules/Demo/resources/views/components/layouts/master.blade.php
deleted file mode 100644
index fbfd12b..0000000
--- a/modules/Demo/resources/views/components/layouts/master.blade.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
- Demo Module - {{ config('app.name', 'Laravel') }}
-
-
-
-
-
-
-
-
-
- {{-- Vite CSS --}}
- {{-- {{ module_vite('build-demo', 'resources/assets/sass/app.scss') }} --}}
-
-
-
- {{ $slot }}
-
- {{-- Vite JS --}}
- {{-- {{ module_vite('build-demo', 'resources/assets/js/app.js') }} --}}
-
-
diff --git a/modules/Demo/resources/views/index.blade.php b/modules/Demo/resources/views/index.blade.php
deleted file mode 100644
index b6d0623..0000000
--- a/modules/Demo/resources/views/index.blade.php
+++ /dev/null
@@ -1,5 +0,0 @@
-
- Hello World
-
- Module: {!! config('demo.name') !!}
-
diff --git a/modules/Demo/routes/.gitkeep b/modules/Demo/routes/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/routes/admin.php b/modules/Demo/routes/admin.php
deleted file mode 100644
index ff7eafd..0000000
--- a/modules/Demo/routes/admin.php
+++ /dev/null
@@ -1,4 +0,0 @@
-group(function () {
- Route::resource('demos', DemoController::class)->names('demo');
-});
diff --git a/modules/Demo/tests/Feature/.gitkeep b/modules/Demo/tests/Feature/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/tests/Unit/.gitkeep b/modules/Demo/tests/Unit/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/modules/Demo/vite.config.js b/modules/Demo/vite.config.js
deleted file mode 100644
index 0ccf436..0000000
--- a/modules/Demo/vite.config.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import { defineConfig } from 'vite';
-import laravel from 'laravel-vite-plugin';
-import { readdirSync, statSync } from 'fs';
-import { join,relative,dirname } from 'path';
-import { fileURLToPath } from 'url';
-
-export default defineConfig({
- build: {
- outDir: '../../public/build-demo',
- emptyOutDir: true,
- manifest: true,
- },
- plugins: [
- laravel({
- publicDirectory: '../../public',
- buildDirectory: 'build-demo',
- input: [
- __dirname + '/resources/assets/sass/app.scss',
- __dirname + '/resources/assets/js/app.js'
- ],
- refresh: true,
- }),
- ],
-});
-// Scen all resources for assets file. Return array
-//function getFilePaths(dir) {
-// const filePaths = [];
-//
-// function walkDirectory(currentPath) {
-// const files = readdirSync(currentPath);
-// for (const file of files) {
-// const filePath = join(currentPath, file);
-// const stats = statSync(filePath);
-// if (stats.isFile() && !file.startsWith('.')) {
-// const relativePath = 'Modules/Demo/'+relative(__dirname, filePath);
-// filePaths.push(relativePath);
-// } else if (stats.isDirectory()) {
-// walkDirectory(filePath);
-// }
-// }
-// }
-//
-// walkDirectory(dir);
-// return filePaths;
-//}
-
-//const __filename = fileURLToPath(import.meta.url);
-//const __dirname = dirname(__filename);
-
-//const assetsDir = join(__dirname, 'resources/assets');
-//export const paths = getFilePaths(assetsDir);
-
-
-//export const paths = [
-// 'Modules/Demo/resources/assets/sass/app.scss',
-// 'Modules/Demo/resources/assets/js/app.js',
-//];