You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Laravel 11安装Filament 3.2遭遇Composer依赖冲突问题

Laravel 11安装Filament 3.2依赖冲突问题解决

操作流程

  • 创建全新Laravel 11项目:
    composer create-project laravel/laravel example-app
    
  • 尝试安装Filament 3.2:
    composer require filament/filament:"^3.2" -W
    

错误信息

执行安装命令后出现以下依赖冲突错误:

The "3.2" constraint for "filament/filament" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update filament/filament --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/console[v10.17.0, ..., v10.48.25] require nunomaduro/termwind ^1.13 -> found nunomaduro/termwind[v1.13.0, ..., v1.17.0] but these were not loaded, likely because it conflicts with another require.
    - filament/filament v3.2.0 requires illuminate/console ^10.0 -> satisfiable by illuminate/console[v10.0.0, ..., v10.48.25].
    - Root composer.json requires filament/filament 3.2 -> satisfiable by filament/filament[v3.2.0].


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

问题原因

Laravel 11依赖的nunomaduro/termwind版本为^2.0,而Filament 3.2要求的illuminate/console ^10.0依赖nunomaduro/termwind ^1.13,二者版本不兼容,导致依赖冲突。

解决办法

方法一:安装适配Laravel 11的Filament版本

Filament 3.3及以上版本开始支持Laravel 11,执行以下命令安装:

composer require filament/filament:"^3.3" -W

方法二:降级Laravel版本到10(如需保留Filament 3.2)

如果必须使用Filament 3.2,需要将Laravel项目降级到10版本,再执行Filament 3.2的安装命令。

内容的提问来源于stack exchange,提问作者Ruhul Kuddus

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 04:22:09