amkha wasa
amkha wasa

Reputation: 3

How to change Filamentphp Heroicon version?

Filamentphp is using Heroicon v1 as it says in the documentation.

But I wanted to change the version to v2. I wasn't successful.

I installed the blade-ui-kit/blade-heroicons package and required it. Then I updated the composer.

"require": {
   "blade-ui-kit/blade-heroicons": "^1.2|^2.10",
}

The reason why I put ^1.2|^2.10 instead of ^2.10 for the version is that it had given me an error:

Problem 1
    - filament/forms[v2.16.0, ..., 2.x-dev] require blade-ui-kit/blade-heroicons ^1.2 -> found blade-ui-kit/blade-heroicons[1.2.0, 1.2.1, 1.3.0, 1.3.1] but it conflicts with your root 

It doesn't give me this error now when I changed the version like I said, but it still isn't working and I can't use Heroicon v2 icons in Filamentphp.

Upvotes: 0

Views: 2380

Answers (2)

Didwiz
Didwiz

Reputation: 182

This is now supported by default in Filament v3 source

Upvotes: 1

This feature is currently being worked on for Filament v3. As of today, it is not supported since blade-ui-kit/blade-heroicons dropped support for Laravel 8.

Source

Upvotes: 2

Related Questions