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

ChrisJCraft's avatar

What are their two app.blade.php files in Laravel Spark?

So technically there are more, but haven't been able to grok why there is one at .../resources/views/vendor/spark/layouts/app.blade.php and then another again at .../resources/views/vendor/spark/layouts/app.blade.php

I feel I should understand this before I go changing either. 😃

0 likes
3 replies
Nakov's avatar

You just shared both that are the same path.

So what you should be changing is always in your own project resources/views/vendor... but never in ./vendor/spark....

ChrisJCraft's avatar

Sorry here is what I see.

.../resources/views/vendor/spark/layouts/blade/app.blade.php

.../resources/views/vendor/spark/layouts/app.blade.php

and then I have that again under the spark folder

.../spark/resources/views/vendor/spark/layouts/blade/app.blade.php

.../spark/resources/views/vendor/spark/layouts/app.blade.php

So good on not messing with the ones in the spark folder, that I had a good handle on the other two I'm not so sure about.

Nakov's avatar

You should look for which one extends which app layout, but in any case, the first ones you shared are the one that should be modified by you, not the other two. As if you need to update the spark library you will have conflicts in case they change something in there :)

Please or to participate in this conversation.