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

iamDiscovery's avatar

Customising links on Spark billing page

Hey all,

I was just wondering how I'd go about customising the text and route of the "Return to Laravel" button on the left hand side of the Spark billing page? I know that the "Terms of Service" one can be added to config/spark.php but I'm unsure how to reword the return one as well as change its route. I'd like to change it to "Return to Homepage" or something along those lines, and have it redirect to "/home" instead of the default at the moment which is "/dashboard".

0 likes
6 replies
iamDiscovery's avatar

@Nakov This allows me to view and edit the resources/views/vendor/spark/app.blade.php but this is all that's in the body of that page:

<body class="font-sans antialiased">

    @inertia

    <!-- Scripts -->
    <script>
        window.translations = <?php echo $translations; ?>;

        {!! file_get_contents($jsPath) !!}
    </script>

</body>
Nakov's avatar

@vapordev So do you use Inertia? Do you use Vue or React? The front-end should be completely managed by you..

This is what the Spark landing page says:

Frontend

iamDiscovery's avatar

@Nakov So am I not able to edit what's there by default, where ever this "@inertia" is getting the content from? I only have the option of designing my own if I want it customised?

Nakov's avatar
Nakov
Best Answer
Level 73

Laravel Spark does not ship out of the box with Inertia, so you or someone else if you are not working alone has added that one in there. Now for the Component that you would need to edit, in case you are using Vue take a look at resources/js/Pages or whatever is in the js directory to find out the view. What I would usually do is check which text I am looking to replace and try to search for it in my IDE through all files, and it will tell me which view is being loaded. Hope it makes sense.

WallyJ's avatar

I am also having this issue. I changed this file: resources/views/vendor/spark/app.blade.php and this line:

<title>{{ config('app.name', 'Laravel') }}</title>

to

<title>{{ config('app.name', 'MyAppName') }}</title>

There must be another place it looks because I didn't need to make any change to that file for MyAppName to show up correctly on my local dev server.

PS - I'm just using Blade views PPS - I'm noticing that the title of the Spark billing page is also "Laravel"

EDIT - So... it turns out that you have to change the APP_NAME in your .env file on all servers for the app name to show up correctly. #bigduhmoment

Please or to participate in this conversation.