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

GreenRain's avatar

Spark sample application

Hello. I'm brand new to Laravel Spark and I'm working on getting up and running. I was having trouble creating a new project following the installation guide, so I downloaded the sample application hoping this would give me the understanding I'm lacking. I downloaded the Spark sample application, as per the read me file, I ran npm install and gulp successfully..however, when I ran php artisan migrate, I received the following error message (I replaced my actual user name with My_User_Name): Warning: require(/Users/My_User_Name/Desktop/laravel-spark-quickstart-basic/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /Users/My_User_Name/Desktop/laravel-spark-quickstart-basic/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/Users/My_User_Name/Desktop/laravel-spark-quickstart-basic/bootstrap/../vendor/autoload.php' (include_path='.:') in /Users/My_User_Name/Desktop/laravel-spark-quickstart-basic/bootstrap/autoload.php on line 17

Fatal error: require(): Failed opening required '/Users/My_User_Name/Desktop/laravel-spark-quickstart-basic/bootstrap/../vendor/autoload.php' (include_path='.:') in /Users/My_User_Name/Desktop/laravel-spark-quickstart-basic

Not sure what the problem is.

Ideally, I'd like to create a new project, but I'm unsure how to execute this step in the installation guide: make sure the spark-installer directory is added to your systems $PATH variable. I'm on a mac. I assume this is a simple command in terminal, but I'm not sure what it is.. I apologize for this rookie question, but everyone has to learn somewhere... Thank you for any help you can provide.

0 likes
4 replies
tam1's avatar

I haven't used Spark but it looks like your missing the /vendor folder. Trying running composer install.

GreenRain's avatar

There is a vendor folder under resouces --->view--->vendor. Its referring to bootstrap. The bootstrap folder is there..more specifically, its referring to line 17 of the autoload.php file in the bootstrap folder. Line 17 of that file reads as follows:

require DIR.'/../vendor/autoload.php';

I prefer assistance regarding adding spark-installer to my system's $PATH variable. Can someone please elaborate on how to do that within a mac terminal? I found the following on stackoverflow, http://stackoverflow.com/questions/36767828/how-do-i-setup-the-laravel-installer-laravel-spark-installers-bash-path

but its for unbutu and again, Im not 100% sure what to do. I'd really appreciate some specific guidance.

StefanVoinea's avatar

First you must run "composer update" in Spark sample application folder

ejdelmonico's avatar

Let's start from the beginning, what is your dev setup? Mac or Windows...Homestead? Did you link the github repo and install the Laravel Spark installer?

Please or to participate in this conversation.