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
and the custom-guest-page.blade.php is:
When I navigate to /page I get
does anyone knows what I can do?
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');
});
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>When I navigate to /page I get
Using $this when not in object contextdoes anyone knows what I can do?