Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EllenK's avatar
Level 1

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

0 likes
7 replies
Snapey's avatar

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

1 like
EllenK's avatar
Level 1

I installed laravel herd, following along the laravel 11 tutorial. I created a new project and can see the files were created. But when I go to check it on my browser, instead of getting the laravel page, I get IIS Windows instead. Where did I go wrong? I'm on a Windows 10.

Tray2's avatar

@EllenK You installed IIS, that is where you went wrong.

You need to stop IIS, and then you can run Herd properly.

1 like
EllenK's avatar
Level 1

Well that got rid of the IIS page. I turned off the IIS, deleted the old project, created a brand new one. But now the the test page is saying: This site can’t be reached.

EllenK's avatar
Level 1

Nevermind! Test page came up. Nothing like a good old start and stop of the services.

Please or to participate in this conversation.