Tritus
Change text for buttons "Create" and remove "Create and create another"
Hi everyone,
I was pretty sure to have found it the documentation a time ago, but I am not able to see it again.
I'm trying to change the label for the "Create" button (replace it with "Save") for Create and Edit pages, and I want to remove the "Create and create another" on the Create page. Can someone help me? Thanks a lot!
13 replies
Unable to find component filament.livewire.notifications
Hi,
I'm using a custom page and after an object is saved, I redirect to that custom page. However, I always come accross the following error : "Unable to find component : [filament.livewire.notifications]". I suppose there is something missing maybe in my custom page, but I do not find what.
Here is my redirect function :
And then the custom page called by the router :
And to finish, here is the view for this page :
Do you see where the issue could come from? Thanks!
3 replies
[V3] Blade components do not have the good colour
Hi,
I'm using Filament v3 and I'm trying to use the blade components, especially the button one. I'm experiencing an issue with that : in fact, when I change the primary colour of my theme, it is correctly reflected on all Filament parts of my dashboard EXCEPT on the components I manually use.
Here is my AdminPanelProvider :
And how I use the button :
The button will stay orange, whereas the rest of the website is using correctly the primary colour #09F. Any idea?
19 replies
wire:sortable callback has no effect in custom page
Hi guys,
I created a custom Filament page. Inside, I have the following content :
However, the callback method passed to wire:sortable is NEVER called. I do not know why. Is it a problem with Filament livewire component?
9 replies
Repeater and pivot table
Hi, I'm facing an issue with Repeater and a BelongsToMany Relationship.
Here's my Project model :
My pivot table, called "project_user", has a "project_role" column.
Then I have in my EditProject (App\Filament\Resources\ProjectResource\Pages\EditProject) the following Repeater :
I'd like the "project_role" select to automatically fill this pivot column, however it does not work, it tries to fill my "users" table.
Any idea?
4 replies
Relationship "id", fillable and saveRelationships
Hi everyone,
There is probably something I misuderstand. I have a "Course" entity and a "CourseCategory" entity. My relationship is as simple as :
In my CourseResource I have the following select :
And in my CreateCourse :
But if I submit my form, I always get "Field 'course_category_id' doesn't have a default value". The issue disappears if I add "course_category_id" in the $fillable of Course, but I do not like that idea.
I'm seeing there is the "saveRelationships(); " who is called automatically, but I'm not sure to see how it works because if I add course_category_id in the $fillable, it is totally useless, and if not, I have the issue shown above. Can someone help me understand what's the best way to deal with that ? Thanks !
I'm seeing there is the "saveRelationships(); " who is called automatically, but I'm not sure to see how it works because if I add course_category_id in the $fillable, it is totally useless, and if not, I have the issue shown above. Can someone help me understand what's the best way to deal with that ? Thanks !
8 replies