© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
19 replies
terumi

Guest pages using the filament layout.

Hello people, I searched the channel again and again. Although some people insinuated that they found the solution and where asking for details, I didn't manage to have any progress on that.

I want to make a page, (ideally with a form) to be shown when the user navigates to /message and not to /admin/message.
I want the page to use the guest middleware and not forcing the user to login.
Also I want to use the css filament uses for showing all the good stuff it shows.

Right now I have

in my web.php

 Route::get('/page', function(){
        return view('custom-guest-page');
    });
 Route::get('/page', function(){
        return view('custom-guest-page');
    });


and the custom-guest-page.blade.php is:

<x-filament::page>
    <div class="flex flex-col items-center justify-center min-h-screen bg-gray-100">
        <div class="max-w-md px-8 py-6 mt-4 bg-white shadow-lg rounded-lg">
            <h2 class="text-2xl font-bold text-center text-gray-700">Welcome to Filament</h2>
            <p class="mt-4 text-gray-600">
                This page is rendered using the Filament guest layout.
            </p>
        </div>
    </div>
</x-filament::page>
<x-filament::page>
    <div class="flex flex-col items-center justify-center min-h-screen bg-gray-100">
        <div class="max-w-md px-8 py-6 mt-4 bg-white shadow-lg rounded-lg">
            <h2 class="text-2xl font-bold text-center text-gray-700">Welcome to Filament</h2>
            <p class="mt-4 text-gray-600">
                This page is rendered using the Filament guest layout.
            </p>
        </div>
    </div>
</x-filament::page>


When I navigate to /page I get
Using $this when not in object context
Using $this when not in object context


does anyone knows what I can do?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

topbar guest pages.
FilamentFFilament / ❓┊help
3y ago
Filament Layout
FilamentFFilament / ❓┊help
3y ago
Extending the Base Filament Layout
FilamentFFilament / ❓┊help
3y ago
Filament + app layout
FilamentFFilament / ❓┊help
3y ago