Install in Laravel 9 the Form and Table Builder

Hello everybody. Guys, I need to install the Form and the Table Builder in Laravel 9. In the documentation it says that it works just fine, but when I try, it gives me this error message:
Problem 1
- Root composer.json requires filament/tables 2.0, found filament/tables[v1.0.0, ..., v1.10.12, v2.3.6, ..., 2.x-dev, v3.0.0-alpha1, ..., 3.x-dev] but it does not match the constraint.
Problem 1
- Root composer.json requires filament/tables 2.0, found filament/tables[v1.0.0, ..., v1.10.12, v2.3.6, ..., 2.x-dev, v3.0.0-alpha1, ..., 3.x-dev] but it does not match the constraint.
Do you know how to resolve this? Thanks
Solution:
```json { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.",...
Jump to solution
9 Replies
36864
3686417mo ago
Why are you requiring 2.0 specifically instead of ^2.0?
joao nivaldo
joao nivaldoOP17mo ago
I don't quite understand what you mean, but I'm giving composer require filament/tables:"^2.0" as per the documentation.
toeknee
toeknee17mo ago
According to your error you have said 2.0 now ^2.0. Can you provide your JSON?
joao nivaldo
joao nivaldoOP17mo ago
I have a clean install of Laravel 9. I just installed Breeze and Livewire 2. I'm trying to get Filament Table and Form Buider in now. My composer.json is like this.
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7",
"livewire/livewire": "^2.12"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.19",
"laravel/pint": "^1.0",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7",
"livewire/livewire": "^2.12"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.19",
"laravel/pint": "^1.0",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
then when I try composer require filament/tables:"^2.0" I get the error message I mentioned at the beginning.
Solution
toeknee
toeknee17mo ago
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7",
"livewire/livewire": "^2.12"
"filament/forms": "^2.16",
"filament/tables": "^2.16",
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.19",
"laravel/pint": "^1.0",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7",
"livewire/livewire": "^2.12"
"filament/forms": "^2.16",
"filament/tables": "^2.16",
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.19",
"laravel/pint": "^1.0",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
Try the above, delete the lock and composer install again
joao nivaldo
joao nivaldoOP17mo ago
ok It worked out. Thank you very much
toeknee
toeknee17mo ago
Welcomes Why are you using an old version out of curiosity?
joao nivaldo
joao nivaldoOP17mo ago
Project requirement. The customer requested it. I believe that his server only runs up to PHP 8.
toeknee
toeknee17mo ago
Fair enough

Did you find this page helpful?