I would suggest not following a guide for Laravel version 5. We are now on version 11 and php minimum requirements have long since changed
Basic Task List tutorial
I'm trying to follow along the Basic Task List tutorial on laravel.com. I have homestead and the virtual machine set up and ready to go. I followed another tutorial and created a blank laravel project.
Now I am trying to create a Basic Task List following, https://laravel.com/docs/5.1/homestead
I followed these steps: git clone https://github.com/laravel/quickstart-basic quickstart I updated the yaml file to point at the right folders. I turned on the virtual machine (vagrant reload --provision) and connected to it (ssh)
cd quickstart composer install - this is where I get an error:
vagrant@homestead:~/code/quickstart$ composer install Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1 - doctrine/instantiator is locked to version 1.0.5 and an update of this package was not requested. - doctrine/instantiator 1.0.5 requires php >=5.3,<8.0-DEV -> your php version (8.1.8) does not satisfy that requirement. Problem 2 - phpspec/prophecy is locked to version v1.6.0 and an update of this package was not requested. - phpspec/prophecy v1.6.0 requires php ^5.3|^7.0 -> your php version (8.1.8) does not satisfy that requirement. Problem 3 - doctrine/instantiator 1.0.5 requires php >=5.3,<8.0-DEV -> your php version (8.1.8) does not satisfy that requirement. - phpunit/phpunit-mock-objects 2.3.8 requires doctrine/instantiator ^1.0.2 -> satisfiable by doctrine/instantiator[1.0.5]. - phpunit/phpunit-mock-objects is locked to version 2.3.8 and an update of this package was not requested.
I tried to run composer update and I got another error: vagrant@homestead:~/code/quickstart$ composer update
php artisan clear-compiled PHP Warning: require(/home/vagrant/code/quickstart/bootstrap/../vendor/autoload.php): Failed to open stream: No such file or directory in /home/vagrant/code/quickstart/bootstrap/autoload.php on line 17
Warning: require(/home/vagrant/code/quickstart/bootstrap/../vendor/autoload.php): Failed to open stream: No such file or directory in /home/vagrant/code/quickstart/bootstrap/autoload.php on line 17 PHP Fatal error: Uncaught Error: Failed opening required '/home/vagrant/code/quickstart/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/code/quickstart/bootstrap/autoload.php:17 Stack trace: #0 /home/vagrant/code/quickstart/artisan(16): require() #1 {main} thrown in /home/vagrant/code/quickstart/bootstrap/autoload.php on line 17
Fatal error: Uncaught Error: Failed opening required '/home/vagrant/code/quickstart/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/code/quickstart/bootstrap/autoload.php:17 Stack trace: #0 /home/vagrant/code/quickstart/artisan(16): require() #1 {main} thrown in /home/vagrant/code/quickstart/bootstrap/autoload.php on line 17 Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255
Please or to participate in this conversation.