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

garethdaine's avatar

Spark Views

Folks,

Does anyone know what the difference (uses) is between:

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

and

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

Cheers

0 likes
5 replies
EventFellows's avatar

These .../blade/... duplicates appear in serveral places.

So far my take is this:

  • taylor forgot to clean them after development OR
  • they are used on a Spark::update to check if the view has changed as a base for comparison

But I do not know for sure, it's just a guess as they do not seem to be used anywhere.

dannydjones's avatar

I was wondering the same thing, as far as I can tell though it doesn't look like its used for the updating of views, this is defined here: spark/src/Console/Updating/UpdateViews.php and makes no mention of those files.

I could be missing something but I think that's all the code for the updating.

Also seems odd that he would have just missed this when cleaning out the code, can't see why else it would be there though?

Maybe @TaylorOtwell can chime in?

jens_s's avatar

Gotta say as good as the laravel documentation is… the Spark documentation really lacks…

I've a confusing problem, where ONLY the auth views use the stock spark "layouts/app.blade.php" template…

it's the same @extends("layouts/app") line in every single template of my spark app, but only the login/registration,… etc templates use something out of the spark vendor directory it seems

super weird, and it's documented nowhere :(

Please or to participate in this conversation.