[英]Class 'Laravel\Ui\UiCommand' not found when install argon dashboard in laravel 8
When i trird to install argon dashboard i got the below errors when i run this command: composer require laravel-frontend-presets/argon
inside my project.当我尝试安装argon仪表板时,运行此命令时出现以下错误:
composer require laravel-frontend-presets/argon
在我的项目中。
Error
Class 'Laravel\Ui\UiCommand' not found
at C:\xampp\htdocs\eloquent\vendor\laravel-frontend-presets\argon\src\ArgonPresetServiceProvider.php:19
15▕ * @return void
16▕ */
17▕ public function boot()
18▕ {
➜ 19▕ UiCommand::macro('argon', function ($command) {
20▕ ArgonPreset::install();
21▕
22▕ $command->info('Argon scaffolding installed successfully.');
23▕ });
1 C:\xampp\htdocs\eloquent\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
LaravelFrontendPresets\ArgonPreset\ArgonPresetServiceProvider::boot()
2 C:\xampp\htdocs\eloquent\vendor\laravel\framework\src\Illuminate\Container\Util.php:40
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I had the same issue and i fixed it by running我有同样的问题,我通过运行修复了它
composer require laravel/ui
before doing在做之前
composer dump-autoload
. composer dump-autoload
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.