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

Utchin's avatar

Unable to install spark

I have Laravel Spark installed in my project, and it works fine locally. I am trying to deploy it via CI and I am having issues.

include(/var/task/vendor/composer/../laravel/spark-aurelius/src/Providers/SparkServiceProvider.php): failed to open stream: No such file or directory

weirdly this only fails when doing php artisan migrate

composer.json has

"laravel/spark-aurelius": "*@dev",

and:

 "repositories":
        {
            "type": "path",
            "url": "./spark"
        },

This issue only occurs when I am deploying via CI. Locally the symlink is set up correctly. I have deleted vendor and done composer install but still not working.

I have seen this post but no help https://laracasts.com/discuss/channels/spark/class-laravelsparkproviderssparkserviceprovider-not-found

0 likes
2 replies
skauk's avatar

@utchin You have to review what exactly happens during the CI build. Sometimes composer dependencies are installed without the project code and then get copied over. For Spark you have to have the spark folder in place in order to install it successfully.

themsaid's avatar

Did you install Spark using the CLI installer or Composer?

Please or to participate in this conversation.