DianaMujoiu
Spatie media library in livewire component
Hello, everyone. I am using Spatie Media Library upload. I have this component
I have this in my model and the form in livewire component has this model
With all of this it seems that the upload doesn't work. It doesn't do anything.
Can you assist me with this?
4 replies
Same repeater , different extra actions
Hello everyone. I'm using the same repeater in two resources that also use the same model. The difference is in the fields they contain. The second one has more fields. Both have an extra action, but in the second repeater, it doesn't work. Do I need to add a differentiator for the second repeater? I should also mention that there's a many-to-many relationship involved.
3 replies
Display only checked options
Hello everyone. I have two questions.
1. Is there a way to display only the checked options on the ViewPage instead of all available options?
2. I have a checkbox list for categories and another for fields of activities. When a category is selected, I need to display its corresponding options in the second checkbox list. This list should contain the fields of activities, grouped by the selected category, and include a placeholder that displays the category name. Is there a way to achieve this?
2 replies
Wizard step validation
Hello, everyone. In a wizard, how can I validate only the fields from the first step? I have some required fields in the second step, and afterValidation isn't working because it tries to validate all the fields. One thing to mention: on afterValidation I want to save the data in db
2 replies
Exclude assets from publish
Hello everyone. I'm using the Flatpickr package and encountering an issue with the monthSelect() style. I discovered that removing certain classes from the public CSS file fixes the styling, but after running php artisan filament:assets, the CSS file reverts to its original version. How can I permanently overwrite or exclude these changes?
2 replies
Repeater issue
Hello, everyone. I am using two repeaters. When I click on the buttons to add more items, the repeater either closes or does nothing. I've attached a screen recording to show the behavior. I am using this repeater in a Livewire component
2 replies
Custom component load form with dark theme
Hi, everyone. I've created a new Livewire component and added a form to it, but the problem is that the form is displayed in dark mode (according to the device settings), and I want it to always be in light mode
7 replies
Tenancy or alternative?
Hello, everyone. In my app, I need to implement the following flow: people need to log in/register through the admin panel. After logging in, they will be redirected to a form that they need to fill out in the admin panel. Each user should only see their own form. Would it be advisable to do this with tenancy, or is there a quicker and easier way to achieve this?
7 replies
Render modals inside custom page
I've created a custom "Calendar" page and a custom CreateReservation livewire component. This is my create-reservation blade
and I don't understand how can I open the form as a modal when click on a FullCalendar cell
7 replies
Repeater with hasMany
I have this tab with french translations in a repeater. Similar with it, I have a tab for Dutch translations, the difference between them being the relationship.
The two tabs display only the Dutch translation, not the French and the Dutch one. Have you any idea how can I display the corresponding translation from relationship?
2 replies