I am new to Laravel and I am trying to install laravelcollective. I am just following the documentation [here][1] and I am using this from my project directory:
composer require "laravelcollective/html":"^5.4.0"
Unfortunately, immediately after I press enter 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? [1]: https://laravelcollective.com/docs/5.4/html
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"
},