einnlleinhatt_
Explore posts from serversMultiple Image and Featured Image
Good evening, I wanted to have a pet details with pet avatar and some the pets related gallery. Any advice how to achieve this ? Im planning to have max 5 images uploading into the pet record, but im stuck how to choose 1 image out of the 5 for the pet avatar ?
Im thinking about changing the $table->string('gallery')->nullable(); into $table->string('avatar')->nullable(); and make a separate table called pet_image.
2 replies
Tabs
Good evening, i have a question about customizing tabs. I have a relationship between projects and services table. Here is the table.
My goal is to show all projects for each service and the total projects. I managed to implement the tabs but without the total projects of each service.
3 replies
Options with multiple condition.
Good evening, how to list an option from database with multiple condition ? At the moment im still using relationship and only have 1 condition.
What i want to achieve is, the option will only show category with parent_id is null and the status is active.
6 replies
2 Resources 1 Model
Good evening, I have a Category model and migration. My goal is to have a category and sub categor. Everything is smooth until I want a separate resources for category and sub category.
For example inside CategoryResource only have
- Image
- Name
- Status
And in inside the SubCategoryResource will have
- Image
- Name
- Category
- Ststus
Any advice how to achieve this?
18 replies
Relationship belongstoMany
Good evening, I tried to make my own portfolio using filament since I'm not good at frontend.
My goal is a project can have many tags and a tags can have many project too. For example
Project A Tag1, Tag2, Tag3
Project B Tag2, Tag3
Project C Tag3
I followed the filament code source on GitHub for the database migration. On the filament demo, a product can have multiple categories. So I check the database migration for tables product, there is no category_id in it but I can create a product with multiple categories.
In my case I need to add foreignUuid for tag_id inside my projects table.
Anyone can explain to me ?
34 replies
Edit not working
I am going through a tutorial and have watched the same video a few times to see if I had incorrect syntax on my form, but to me it looked ok. But when I hit 'edit' and then click save changes I get an error that the value already exists. This is happening on each of the forms I created.
6 replies