php 如何安装voyager laravel管理面板

pieyvz9o  于 2023-04-19  发布在  PHP
关注(0)|答案(1)|浏览(200)

我只是运行评论laravel新的旅行者,使一个新的项目后,比我运行第二命令cd旅行者后,我运行 composer 要求tcg/旅行者,但得到这个错误

PS D:\new project\voyager> composer require tcg/voyager
./composer.json has been updated
Running composer update tcg/voyager
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tcg/voyager v0.11.14 requires illuminate/support ~5.3.0|~5.4.0 -> found illuminate/support[v5.3.0, ..., v5.4.36] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.0.10, ..., v1.0.17] require illuminate/support ~5.4.0|~5.5.0 -> found illuminate/support[v5.4.0, ..., v5.5.44] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.1.0, ..., v1.1.3] require illuminate/support ~5.4.0|~5.5.0|~5.6.0 -> found illuminate/support[v5.4.0, ..., v5.6.39] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.1.4, ..., v1.1.12] require illuminate/support ~5.4.0|~5.5.0|~5.6.0|~5.7.0 -> found illuminate/support[v5.4.0, ..., v5.7.28] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.2.0, ..., v1.2.7] require illuminate/support ~5.5.0|~5.6.0|~5.7.0|~5.8.0 -> found illuminate/support[v5.5.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.3.0, ..., v1.3.2] require illuminate/support ~5.5|~6.0 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.4.0, ..., v1.4.2] require illuminate/support ~6.0|~7.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.4.3, ..., v1.5.2] require illuminate/support ~6.0|~7.0|~8.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager v1.6.0 requires illuminate/support ~8.0|~9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.5] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires tcg/voyager * -> satisfiable by tcg/voyager[v0.11.14, v1.0.10, ..., v1.6.0].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require tcg/voyager:*" to figure out if any version is installable, or "composer require tcg/voyager:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
xqkwcwgp

xqkwcwgp1#

在安装Voyager之前,请确保您已经安装了以下版本的Laravel之一:

  • Laravel 8
  • 拉腊维尔9

此外,Voyager要求您使用PHP 7.3或更新版本。Laravel要求您在使用Laravel 9时使用PHP 8或更新版本。
请检查 Package 要求-https://voyager-docs.devdojo.com/getting-started/prerequisites
对于旧版本的laravel,您必须安装旧版本的软件包。对于Laravel 6或Laravel 7:

composer require tcg/voyager:^1.5

对于Laravel 5.5:

composer require tcg/voyager:^1.3

相关问题