I am new to laravel and I am trying to install laravelcollective. I am just following to documentation here and I am using this from my project directory:
composer require "laravelcollective/html":"^5.4.0"
Unfortunately, immediately after I press ented I get the following error :
[UnexpectedValueException] Could not parse version constraint :5.4.0: Invalid version string ":5.4.0"
I just don't know how to troubleshoot this. I didn't find much on google and this combined with my lack of experience with laravel leaves me stuck.
Can someone help?
You can add it manually in composer.json
then use composer update
.
Just add "laravelcollective/html": "5.4.*",
under the row with "laravel/framework":"5.4.*",
Like this :
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.4.*",
"laravelcollective/html": "5.4.*", <-- Add this row
"laravel/tinker": "~1.0"
},