phplaravellaravel-spark

Upgrading to Laravel Spark 6; Undefined Method


I'm trying to iterate my way to the latest Laravel and Laravel Spark, currently tripping over an issue going from Laravel Spark 5 to 6. Loading my app, I get the following error:

Call to undefined method Laravel\Spark\Spark::teamString() (View: /home/vagrant/my-project/resources/views/vendor/spark/auth/register-common.blade.php)

From what I can tell, I have the correct instance of Laravel Spark in my vendor folder, I've composer dump-autoload along with clearing the caches via artisan.

I have the following in app.php as per the instructions:

Laravel\Spark\Providers\SparkServiceProvider::class,
Laravel\Cashier\CashierServiceProvider::class,
App\Providers\SparkServiceProvider::class,

Am I missing something obvious? What can I do to debug this further?


Solution

  • I ran into this issue when upgrading my Spark project and the fix is changing any reference to Spark::teamString to Spark::teamsPrefix.