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

ulrichm's avatar

vendor:publish doesnt change spark:: in Spark 2

HI I have just published sparks view files with php artisan vendor:publish, and it gave the response

Copied Directory [\vendor\laravel\spark\resources\views] To [\resources\views\vendor\spark]

but it doesn´t change the spark:: reference in layout blade file

<!-- Navigation -->
        @if (Auth::check())
            @include('spark::nav.user')
        @else
            @include('spark::nav.guest')
        @endif

It worked in Spark 1.0...

0 likes
1 reply
ulrichm's avatar

Suddenly it worked after I entered some text in one of the blades that nav.user includes. Must have been cached, but php artisan cache:clear didnt help ...

Please or to participate in this conversation.