管理面板 Voyager Laravel 7 安装失败
Admin panel Voyager Laravel 7 Installation failed
我正在尝试在我的 Laravel 项目中安装 voyager 面板,但是当我 运行 这个命令 Composer 需要 tcg/voyager 我得到这个错误:安装失败,正在恢复 ./ composer.json 和 ./composer.lock 到原来的内容。
这是composer.json
的文件
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.22.2",
"laravel/tinker": "^2.0"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
让我们试试这个,
步骤 1. 重新启动系统
第 2 步。运行composer global require laravel/installer
第 3 步。使用 composer create-project --prefer-dist laravel/laravel blog
创建新的 laravel 项目
避免使用laravel new blog
第 4 步。将终端路径更改为项目文件夹和 运行 composer require tcg/voyager
接下来关注航海者文档希望对你有所帮助
我正在尝试在我的 Laravel 项目中安装 voyager 面板,但是当我 运行 这个命令 Composer 需要 tcg/voyager 我得到这个错误:安装失败,正在恢复 ./ composer.json 和 ./composer.lock 到原来的内容。
这是composer.json
的文件{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.22.2",
"laravel/tinker": "^2.0"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
让我们试试这个,
步骤 1. 重新启动系统
第 2 步。运行composer global require laravel/installer
第 3 步。使用 composer create-project --prefer-dist laravel/laravel blog
避免使用laravel new blog
第 4 步。将终端路径更改为项目文件夹和 运行 composer require tcg/voyager
接下来关注航海者文档希望对你有所帮助