【问题标题】:Auth is not creating in laravel 8身份验证未在 laravel 8 中创建
【发布时间】:2021-10-13 08:11:23
【问题描述】:

我用这个命令

作曲家需要 laravel/ui

在 laravel:8 中进行身份验证,但它给出了以下错误:

Using version ^3.3 for laravel/ui
./composer.json has been updated
Running composer update laravel/ui
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

 Problem 1
 - laravel/ui[v3.3.0, ..., 3.x-dev] require illuminate/console ^8.42 -> found  
  illuminate/console[v8.42.0, ..., 8.x-dev] but these were not loaded, likely because it    
  conflicts with another require.
 - Root composer.json requires laravel/ui ^3.3 -> satisfiable by laravel/ui[v3.3.0, 3.x-dev].


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

【问题讨论】:

  • 按照错误提示运行composer require laravel/ui "^3.3"
  • @MohsenNazari 您的需求无法解析为一组可安装的软件包。问题 1 - 根 composer.json 需要 laravel/ui 3.3 -> laravel/ui[v3.3.0] 可以满足。 - laravel/ui v3.3.0 需要Illumination/console ^8.42 -> 找到Illuminate/console[v8.42.0, ..., 8.x-dev] 但这些没有加载,可能是因为它与另一个需求冲突。安装失败,正在将 ./composer.json 和 ./composer.lock 还原为其原始内容。
  • 尝试使用旧版本,例如 composer require laravel/ui:^3.2composer require laravel/ui:^2.5
  • 虽然 laravel/ui 继续使用最新版本的 Laravel,但您应该考虑将 Laravel Breeze 用于新项目。或者,对于更强大的东西,考虑 Laravel Jetstream。还要检查stackoverflow.com/questions/65446578/…
  • @MohsenNazari 谢谢

标签: laravel laravel-8


【解决方案1】:

首先你应该使用这个命令更新你所有的 php 包:

composer update 

在此之后尝试安装 laravel/ui:

composer require laravel/ui

执行其中一个: // 生成登录/注册脚手架...

 php artisan ui bootstrap --auth
 php artisan ui vue --auth
 php artisan ui react --auth

终于

npm install 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-14
    • 2016-04-21
    • 2015-10-01
    • 2016-07-18
    • 1970-01-01
    相关资源
    最近更新 更多