rubendn
New Project Recommended Installation Steps/Order?
What would be the recommended installation steps for a new project that will be using Filament (/admin route) and will also use Breeze, Livewire, Volt, & Alpine outside of Filament and build both Filament and other pages with Vite?
This order?
Laravel
Breeze
Filament (installs Livewire & Alpine?)
Volt
Anything else I would need to do besides include the @livewireStyles & @livewireScript tags in the non-Filament layout in order for the project to build correctly?
Thanks!
Ruben
6 replies
FileUpload Previewing with File Name not based on Stored Field
I'm uploading an image using the FileUpload component using the following code where the image name is not stored in one of the database fields and it is stored in the public directory directly.
This uploads the image correctly into the public folder. Is there a way I can get it to preview the image in the filepond component when I go back into the form to edit the record?
This is the config for the public disk:
Thank you.
5 replies
Many Identical Forms on the Same Custom Page
Is there a way to add X number of identical forms on the same page on a Custom Page that can be submitted individually? Like an array of forms?
I've kind of gotten it to work using Livewire but it would be great if I could use the Filament Fields.
The use case is I'm going to have a bunch of images with a form to the right of the image with around 4-5 fields that need to be filled out and submitted. Once one is submitted it hides and the user can continue with the next one.
Or is there a way to use a Filament field in a Filament Livewire Custom page but that isn't a part of "Filament" form?
15 replies
Function after selecting from datalist in TextInput
Is there a way to run a function after selecting an option from a dynamically created datalist in a TextInput?
This is the scenario:
I have three TextInputs: FirstName, LastName, Suffix
When the user starts typing in the FirstName field, I want to return a datalist of current FirstName+LastName+Suffix from the database for them to choose. I think I can do this using a function in the datalist of FirstName.
What I want to do next is fill in the FirstName, LastName and Suffix fields based on the selection from the datalist in FirstName.
I don't want to use Selects because I want the user to easily add new values to the fields.
Thanks!
2 replies
Markdown Editor Preview in V3?
Is there no longer a way to see a preview of the markdown using the Markdown Editor in V3?
The docs still say "The markdown editor allows you to edit and preview markdown content, as well as upload images using drag and drop" but there is no preview button and don't see an option to enable it.
Thanks.
10 replies
Vite Build Process for existing Laravel App and Panel Builder
What is the recommended process for incorporating panel builder into the build process of an existing application using Vite/Tailwind?
I don't want to have separate build processes for the front-end and Filament because I want to use components from each in the other.
I've tried importing the Filament preset into tailwind.config.js but I encounter some conflicts with the GRAY color that I'm already using on the front-end?
Also, how do I tell Filament to use my front-end build with imported preset (if I'm able to resolve the conflict above)? Is it using ->viteTheme in the Admin panel provider?
4 replies
Viewing image after upload with FileUpload component - insecure resource
I'm using the FileUpload component in a form and it works correctly during Add (over HTTPS). I can see the image after it is selected and it saves fine.
However, when I go to the the Edit page of that record, the FilePond component stays on Waiting for size and Loading.
I have set the correct local APP_URL.
This is the error I see in the console...
This is the component:
How can I fix this so it is requested over HTTPS instead of HTTP.
3 replies
Icon Visibility on Text Column depending on record value
I have a Text Column with a modal where I'm showing an Icon and Text. I'm able to hide the text depending on the status of the $record->StatusID from the model by using formatStateUsing() but the icon still shows. Is there a way to make the display of the icon conditional?
See code below.
Thank you!
8 replies
Add HTML to Card value in Widget
Is there a simple way of doing this...
This does not work as it shows the full HTML. I tried the blade '{!!' but that doesn't have any effect.
I tried creating a separate Widget but then it does not show all three cards on the same line.
Is there a way to include another widget as the third item within this return statement?
6 replies