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

bufferoverflow's avatar

Laravel Spark spark:update error

I tried to run php artisan spark:update to get the latest version but i'm getting the following error: Spark configuration file not found. Please register a token.

I only remember creating a github token at the moment of installation, what's this configuration file?

Edit: if I do composer update the php artisan spark:version still shows the first installed version of Spark :S

0 likes
4 replies
kerrin's avatar

Have you tried registering the token again?

From the docs:

Registering Your API Token

Now that you have the Spark installer, you need to register your Spark API token with the installer. You may create an API token from the API settings dashboard. Once you have created a token, register it with the installer using the register command:

spark register token-value

If you would like to view the currently registered token, you may use the token command:

spark token
bufferoverflow's avatar

@KERRIN - I installed Spark without the Spark installer. I followed the route of adding Spark to my composer file of an existing Laravel app.

Do I need to setup the installer only to register the token? I think I can just do composer update but the php artisan spark:version prints the version from when I installed the first time.

Damayanti's avatar

when running the "spark register cgvIZHTwhbBUvl9OCeWOdMU4TN9BZV9gQw8hPoumoIu6ztRmHx" command then showing error bash: spark: command not found

ldigiuseppe2's avatar

From Laravel Spark documentation:

If you installed Spark via Composer, you may simply update your dependency version in your composer.json file and run the composer update command. Of course, in order for your GitHub user to access the repository, you should first join this repository in the Spark dashboard:

"laravel/spark-aurelius": "~10.0"

Please or to participate in this conversation.