bflip
How do you style page components?
I have a simple page component. Say it's a white box:
<div class="bg-white"></div>
I have this component on a filamentPage.
How do I compile the tailwind classes just for that component?
If I add @vite(['resources/sass/app.scss'])
, it brings in bg-white, but the default theme breaks as that class exists for some reason in the sidebar.
I would have imagined the default theme to not have classes sitting there that can be overridden so easy? What am I missing?4 replies
single record edit
Going off this tutorial: https://laraveldaily.com/post/filament-edit-only-single-record-custom-page
I have a working form on my FilamentPage. However the related select field doesn't populate.
This all works great in the actual admin Resource. But not on the other side where a user logs in to edit one record.
5 replies
Bumped from 3 to 3.2 and getting Leage\Csv\Writer not found
Did I miss a step?
For context, this is for an export action.
I did try
composer require filament/filament:^3.2 -W
but doesn't seem to have helped.
I've also tried simply requiring League/Csv but it didn't help. I do see the League\Csv\Writer file in my vendor folder. I'm not sure what's up...4 replies
Method Filament\Actions\ExportAction::table does not exist.
Just upgraded to Filament 3.2 to get this Export working, but no dice so far. I migrated teh tables, and I can see the export table. I'm not sure why the error though.
This is my code;
3 replies
getUrl() must be of type array
Trying to have my relational resource not open in a modal. Using this:
I'm getting error:
Based on this: https://v2.filamentphp.com/tricks/relation-manager-edit-record-without-modal
Any ideas?
4 replies
How to setup Laravel Spark?
https://filamentphp.com/docs/3.x/panels/tenancy#billing
Looks like Spark integrates nicely if it's a multi tenant system. Mine is multi tenant, but only in the way that models have a global auth()->user_id scope.
I enable tenantBillingProvider, but see nowhere to manage billing in the front views?
3 replies
Display "preview" from Form field?
Very new to Filament. I am needing to show a "preview" of the fields. For example, two columns.
1. Displays name and color input fields
2. Displays a preview of the name in said color
This is just for example sakes. I understand this all uses Livewire, so what I'm thinking is I create a new form field that basically acts as my preview window... but how specifically would I pass the name/color fields to my preview field?
Thanks so much!
27 replies