InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.78k stars 802 forks source link

getting error while running php artisan ui adminlte-localized --auth #1090

Open dhsont opened 9 months ago

dhsont commented 9 months ago

Truying to run following command on fresh laravel project with infyom lab php artisan ui adminlte-localized --auth

ErrorException

copy(D:\laragon\www\l10infyom\vendor\infyomlabs\laravel-ui-adminlte\src../adminlte-stubs/bootstrap/vite.config.js): Failed to open stream: No such file or directory

at vendor\infyomlabs\laravel-ui-adminlte\src\AdminLTELocalizedPreset.php:58 54▕ @return void 55▕ / 56▕ protected static function updateViteConfiguration() 57▕ { ➜ 58▕ copy(DIR.'../adminlte-stubs/bootstrap/vite.config.js', base_path('vite.config.js')); 59▕ } 60▕ 61▕ /* 62▕ Update the Sass files for the application.

1 vendor\infyomlabs\laravel-ui-adminlte\src\AdminLTELocalizedPreset.php:58

2 vendor\infyomlabs\laravel-ui-adminlte\src\AdminLTELocalizedPreset.php:45 InfyOm\AdminLTEPreset\AdminLTELocalizedPreset::updateViteConfiguration()

working fine for non localized

php artisan ui adminlte --auth

saeed-isfahani commented 7 months ago

I have same problem with php artisan ui adminlte-localized --auth. Is there any solution?

EDIT: After some manipulation I solve my problem this way: You can add a slash to /vendor/infyomlabs/laravel-ui-adminlte/src/AdminLTELocalizedPreset.php:58 before ../adminlte-stubs/... So you must have this line after: copy(__DIR__ . '/../adminlte-stubs/bootstrap/vite.config.js', base_path('vite.config.js'));

@dhsont