I wanted to make php artisan make:auth
work in my project but when running the command composer require laravel/ui
I am facing the following problems(I am on ubuntu OS):
Using version ^1.1 for laravel/ui ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/ui v1.1.0 requires illuminate/support ~5.8|^6.0 -> satisfiable by illuminate/support[v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1].
- laravel/ui v1.1.1 requires illuminate/support ~5.8|^6.0 -> satisfiable by illuminate/support[v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1].
- illuminate/support v6.5.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.5.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.4.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.3.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.2.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.1.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.0.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.0.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.0.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.0.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v6.0.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.8 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.35 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.34 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.33 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.32 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.31 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.30 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.29 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.27 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.24 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.22 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.20 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.19 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.18 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.17 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.15 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.14 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.12 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.11 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/support v5.8.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- Installation request for laravel/ui ^1.1 -> satisfiable by laravel/ui[v1.1.0, v1.1.1].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.2/cli/php.ini
- /etc/php/7.2/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.2/cli/conf.d/10-opcache.ini
- /etc/php/7.2/cli/conf.d/10-pdo.ini
- /etc/php/7.2/cli/conf.d/20-calendar.ini
- /etc/php/7.2/cli/conf.d/20-ctype.ini
- /etc/php/7.2/cli/conf.d/20-exif.ini
- /etc/php/7.2/cli/conf.d/20-fileinfo.ini
- /etc/php/7.2/cli/conf.d/20-ftp.ini
- /etc/php/7.2/cli/conf.d/20-gettext.ini
- /etc/php/7.2/cli/conf.d/20-iconv.ini
- /etc/php/7.2/cli/conf.d/20-json.ini
- /etc/php/7.2/cli/conf.d/20-mysqli.ini
- /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.2/cli/conf.d/20-phar.ini
- /etc/php/7.2/cli/conf.d/20-posix.ini
- /etc/php/7.2/cli/conf.d/20-readline.ini
- /etc/php/7.2/cli/conf.d/20-shmop.ini
- /etc/php/7.2/cli/conf.d/20-sockets.ini
- /etc/php/7.2/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.2/cli/conf.d/20-sysvsem.ini
- /etc/php/7.2/cli/conf.d/20-sysvshm.ini
- /etc/php/7.2/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
I have looked on the stackoverflow and stackexhange but their solutions didn't work for me.
Here is my composer.json file
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^1.0"
},
"require-dev": {
"facade/ignition": "^1.4",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^8.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
After getting the idea from Jean Marcos Answer First running the command
sudo apt-get install php7.2-mbstring
and then
sudo apt-get install php7.2-dom
Now, the command composer require laravel/ui
worked fine
If this approach doesn't work. Try using this one
composer require laravel/ui:^2.4
Hope it helps!