Kaan
Call to undefined method App\Models\Category::category_image()
Hi. I'm using this package for the media library: https://filamentphp.com/plugins/awcodes-curator
In my CategoryResource, i'm trying to insert a form data with image.
Here's my CategoryResource > Form Method:
And here's my Category Model:
When i try to insert data in my CategoryResource i'm getting this error:
How can i solve the problem?
4 replies
Preventing Automatic Record Creation in Associated Table with BelongsToMany Relationship
Hello,
I am working with a BelongsToMany relationship and using Filament's Relation Managers. When I select multiple options and submit the form, records are automatically added to the pivot table, which is the desired behavior. However, I do not want these records to be created in the other table that's associated via the relationship. Is there a way to prevent this automatic record creation in the associated table while still allowing the data to be stored in the pivot table?
Thank you for your assistance!
1 replies
Catch data from fill
Hello. I am trying to trigger the fill state by triggering the visible property and capturing the type of the current data while filling the data in Filament, but I could not succeed.
Here is my code:
All Code:
https://gist.github.com/kaanxweb/b7aace76adec07d1dbd7c1d052af6676
Form Method:
3 replies
Custom Page Repeater Delete Item
I am working on a project using Filament V3 and facing an issue while trying to implement a custom delete method within a Repeater component. My aim is to allow the user to delete individual records within the Repeater component. I have created a delete method in my page class, and I am trying to link this method to the deleteAction property of the Repeater component, but it seems like the delete method is not being triggered. Below is the relevant code:
https://gist.github.com/kaanxweb/8cdba1bf2c8b67f2a1706cdc4900509f
2 replies
Dynamic Wizard
I'm currently working on a project where I'm using the Wizard component in Filament. I have a table named category_steps and I want to dynamically generate wizard steps based on the number of records in this table. Essentially, for each record in category_steps, I want to present the user with a corresponding step in the wizard.
Could anyone guide me on how to achieve this dynamic generation of wizard steps using Filament in Laravel? Any help or pointers would be greatly appreciated. Thank you!
29 replies
Unable to retrieve the file_size for file at location
Greetings! I get the error you see below when saving an image on the filament:
Unable to retrieve the file_size for file at location: livewire-tmp/6D8QLsQas3ajrb0518YlLmJfytitii-metaZG5wLXg0MDAtanBnLmpwZw==-.jpg.
3 replies
Fill Form Data
Greetings!
I want to perform an edit operation on my custom page I created in Filament. However, since this edit operation will be with data from a relational table, I have some difficulty in bringing the data.
If I need to talk about logic briefly:
There is "category_id" in categorySteps. Every data that has this "category_id" comes from the category_steps table. What I want to do here is to call the step_title of the data in the category_steps table associated with this category_id
https://hastebin.skyra.pw/ezupekilon.php
12 replies