Closed eichgi closed 5 years ago
yup, not able to install on 5.7.*
Working fine on : Laravel Framework 5.7.6
Could you please post your composer.json content here !
Sure, this is my composer file:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.7.*",
"laravel/tinker": "^1.0",
"yajra/laravel-datatables-oracle": "~8.0"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
I solved it by installing this way:
composer require spatie/laravel-medialibrary
It installed me ^7.5 version and now everything works fine
@dundermave as you mentioned, it works.
I guess the doc shoulnd't specify the version, just the name of the package as you did.
Thanks!
I am also here stack with the same problem.
same problem heree help T_T
Gloudemans/shoppingcart not installing
@MdkanokHossain & @leonardolouie did you already tried to use the command @dundermave posted before??
@eichgi i use other package and its work now https://github.com/darryldecode/laravelshoppingcart
@eichgi .. i also try this "darryldecode" its work but "Gloudemans" not working .
This problem is not caused by this package.
Use prohibits
to find out which package is the culprit of the problems: https://getcomposer.org/doc/03-cli.md#prohibits-why-not-
Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation failed, reverting ./composer.json to its original content.
As @dundermave has mentioned above, use the below code to install the latest package of the Laravel Media Library.
composer require spatie/laravel-medialibrary
still can't install it after install on laravel 5.7.28 composer require spatie/laravel-medialibrary
i have similar issue with installing socialite composer require laravel/socialite i need help please
Did you find a solution Tripletens?
Not yet
composer require spatie/laravel-medialibrary
Let me try this one
how can i solve this problem forlaravel-medialibrary ......
ok found a hacky solution provided by @jstoone: add this to your composer.json:
{ "require": {
}, "require-dev": {
} }
@Towhid86 and others having similar problems, please make sure you have the imagick
install and enabled.
Use the following to get information about the imagick
extension:
php --re imagick
If the above command fails with a message similar to: Exception: Extension imagick does not exist
, then it means you don't have the imagick
extension installed/enabled.
Now you have two options:
imagick
extension in your dev environment.
There are plenty of resources on how to install and enable the extension for any OS you desire.provides
-key in your composer.json
-file add ext-imagick
to the list.
Have a look at https://github.com/spatie/laravel-medialibrary/issues/1553#issuecomment-528343947 for an example of the changestry this version from maennchen/zipstream-php "maennchen/zipstream-php": " ^1.2", work for me after every thing i tried
if you're trying to install it on Laravel 5.7, you should use an older version: composer require beyondcode/laravel-websockets:1.3
The latest (1.4) version only supports Laravel 5.8, 6.x and 7.x.
Composer throws this message:
How can I achieve the installation?