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

rameezisrar's avatar

Class 'Laravel\Spark\Providers\SparkServiceProvider' not found

I installed spark via spark installer and followed their official documentation and when i run php artisan serve i get this error :

In ProviderRepository.php line 208: Class 'Laravel\Spark\Providers\SparkServiceProvider' not found

0 likes
13 replies
rameezisrar's avatar

This is the error : In ProviderRepository.php line 208:

Class 'App\Providers\SparkServiceProvider' not found

Cronix's avatar

Or use composer to install, which will never have this issue.

3 likes
rameezisrar's avatar

thankyou guys. @davejitsu i followed your instructions. Now i have registered my spark installer token. But now when i run command : spark new 'project_name' It throws an error which says :

sh: 1: laravel: not found Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - The requested package laravel/spark-aurelius could not be found in any version, there may be a typo in the package name.

Potential causes:

rameezisrar's avatar

@Cronix @davejitsu finally issue has been resolved via using composer global package of laravel/spark-installer and then adding into systemPath(export PATH="$PATH:$HOME/.composer/vendor/bin").

I now have access of login screen. But when i click on 'Register' button. it shows me an empty page with only header. Can you guys please help me in this? Why i cannot access registration page or else i wont be able to login.

Cronix's avatar
Cronix
Best Answer
Level 67

I've read that this can happen when you don't enter your stripe ID's in .env. Not sure about BrainTree.

1 like
Cronix's avatar

And I meant to not use the spark installer at all. Just pure composer like is explained in the docs (just below the instructions for installing with the installer). Glad you got it working though.

danielmeade's avatar

@Cronix Can you share an example of a .env file with correct Stripe variables? I'm having the same issue but not sure how to structure my .env file

Cronix's avatar

@danielmeade I'm not using the most current version of Spark, but I'm just using the default .env that ships with Spark and just filled in my credentials.

AUTHY_SECRET=

STRIPE_MODEL=App\User
STRIPE_KEY=
STRIPE_SECRET=

BRAINTREE_MODEL=App\User
BRAINTREE_ENV=
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=

Since I use stripe, the only 2 things I've filled in are the strip key and secret. Everything else is as you see above (except the rest of the base laravel settings)

https://github.com/laravel/spark/blob/5.0/install-stubs/.env (need subscription to spark to view the repo)

danielmeade's avatar

@CRONIX - Thanks, it turned out that something failed during my install process, and as a result, I was missing a number for files. I ran a fresh install and everything was there, so my comment above ended up being premature. Thanks though!

Please or to participate in this conversation.