F
Filamentβ€’15mo ago
ariabk

Custom layout

Hello everyone Filament 3 is not using the custom layout at views/components/layouts/app.blade.php This file exists and this is my Livewire config 'layout' => 'components.layouts.app', Can anyone help please?
15 Replies
toeknee
toekneeβ€’15mo ago
Filamentphp wouldn't use that, that is for your custom application outside filament
toeknee
toekneeβ€’15mo ago
That's not filament, that's FilamentTables But that's telling you above how to implemenet it and what you are referring to is the livewire instance layout for the entire app being rendered from the route
ariabk
ariabkOPβ€’15mo ago
Ok Thank you, How can I tell Filament which layout to use for the whole panel?
toeknee
toekneeβ€’15mo ago
You can't, Filament uses it's own layout. what are you trying to do?
ariabk
ariabkOPβ€’15mo ago
I have a custom page in Filament and I am using Tailwind for the styles, Some of the Tailwind classes are missing from Filament's CSS file. I am using Vite and Tailwind in my Laravel application, so usually the assets are referenced using Vite and with "npm run dev "running. I am trying to achieve the same thing here
krekas
krekasβ€’15mo ago
oh c'mon. it's such a common question at least try to search. create a custom theme then
ariabk
ariabkOPβ€’15mo ago
I have been searching for two days now, The thing is it was working until I upgraded to v 3
krekas
krekasβ€’15mo ago
i guess you are missing a preset which filament provides
ariabk
ariabkOPβ€’15mo ago
Are you talking about Tailwind config? presets: [require('tailwindcss/defaultConfig'),filamentPreset],
krekas
krekasβ€’15mo ago
yes
ariabk
ariabkOPβ€’15mo ago
Can you help me understand why TableBuilder has a custom layout config, and when this layout is used? https://filamentphp.com/docs/3.x/tables/installation#configuring-your-layout It's confusing me and I understand that this is a seperate issue from Custom themes
krekas
krekasβ€’15mo ago
this is example for your layout not filament
ariabk
ariabkOPβ€’15mo ago
Aah I got it now, It's for using the TableBuilder component outside of the panel, Thanks πŸ˜„
krekas
krekasβ€’15mo ago
yes ant stop replying like that it's annoying Learn how tailwind is set up and you won't be confused
Want results from more Discord servers?
Add your server