This is the error : In ProviderRepository.php line 208:
Class 'App\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
This is the error : In ProviderRepository.php line 208:
Class 'App\Providers\SparkServiceProvider' not found
I had this issue. Make sure you update the laravel installer and spark-installers first, then try running the spark installer again.
https://spark.laravel.com/docs/6.0/installation#spark-installer
Or use composer to install, which will never have this issue.
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:
@Cronix do you want me to use spark-installer as a composer package ?
@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.
I've read that this can happen when you don't enter your stripe ID's in .env. Not sure about BrainTree.
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.
@Cronix thanks alot man. Finally the registration page showed up :)
rm -rf vendor
composer update
@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
@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)
@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.