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

N1Prop's avatar

Installation Problem

Hello

After "successfully" installing Spark on digital ocean using spark installer, I have my "/resources/views/welcome.blade.php" displayed by default, however "login" or "register" buttons result in error 404.

looks like some kind of a configuration issue. routes/web.php has only two route entries after installation (below) and I don't understand how Spark functions without any routes defined.

Route::get('/', 'WelcomeController@show'); Route::get('/home', 'HomeController@show');

Am I missing something?

Thank you

0 likes
6 replies
Cronix's avatar

Those are just boiler plate routes to create the rest of your app. Sparks routes are in it's package:

/vendor/laravel/spark/src/http/routes.php

Spark will load your custom routes first, and then load sparks routes (so you can override any of their routes in your custom app/routes/web.php if needed)

N1Prop's avatar

Got it thanks. But why those routes don't work after my installation. It went fine without any errors, but when I click Login (/login) I get 404, even though I see this route in /vendor/laravel/spark/src/http/routes.php. My /vendor/laravel/spark/ is linked to myapp/spark directory

What am I missing?

Thanks

Cronix's avatar

Have you registered the service providers in config/app.php, and in this order? I used the composer method to install and followed the instructions. It just worked.

Laravel\Spark\Providers\SparkServiceProvider::class,
Laravel\Cashier\CashierServiceProvider::class,
App\Providers\SparkServiceProvider::class,
N1Prop's avatar

Yep it was added there automatically I guess when I used spark-install.

This is very strange. Do you have any other ideas that I can try?

I'm willing to try anything as I ran out of things that I can try on my own.

Cronix's avatar

Sorry, I don't, well besides checking the laravel logs along with the server logs to see if any errors show up. I'd also check the owner and permissions of /vendor and the spark dir. I'm using homestead and everything just worked out of the box, so I haven't had to troubleshoot any of this to give you an idea on where else to work.

Lordearon's avatar

Hey OP, any luck with this? I'm having the same issue. I installed locally, and immediately deployed to DO using Forge. Spark has a nice landing page, but that's all it is... the links don't work.

Please or to participate in this conversation.