Edit Profile in Slide Over
Hi guys, I have seen same question not answered half a year ago. Wondered still if it is possible to open "Edit Profile" in slide over. 🙂
Hint Action - Copy value
I wanna add a hint action to a
Builder
field, which should copy the $state into the browser clipboard.
This is what I got so far:
```php
->hintAction(Action::make('copyJson')...Solution:
Try this plugin.
https://github.com/webbingbrasil/filament-copyactions
If you need a one off simple solution, you may take some inspiration from this trait from above package
https://github.com/webbingbrasil/filament-copyactions/blob/3.x/src%2FConcerns%2FHasCopyable.php...
Open related resource from action in a repeater
Hi!
I'm trying to open a new tab with the related records by clicking on the an extraItemActions on Repeater.
I have Course->Sections->Page hierarchy.
...
Uploaded files/image does not show when in edit page
All other data succesfully fetched except the files in FIleUpload
ComplainResource
` Wizard\Step::make('Fault')
->schema([...
Badge color on minimal theme missing
Hi,
I just bought the minimal theme. Im having problems with the badges. Its not showing any color.
The .fi-badge.fi-color-custom is causing this. if i remove the background-color in that class, it works.
...
Solution:
Thanks for notifying me, Dennis 🙏
Getting owner record in custom association action
Hello all,
I have a book and story tables with a pivot table between the two. I have relationship manager to handle associating and dissociating books and stories. But the pivot table also has other data that needs to be entered when creating an association (order).
So I have overridden the form for the associate action like so:
```php...
How to put action on toggleColumn?
Is it possible to do like this? I want to use the toggle to block user the case is the
blocked_at = timestamp
blocked_by = unsignedBigInt
```...
Exposed livewire code
When I install filament in my laravel project, the livewire source code is exposed in the debugger in firefox. Is there any way to minify this code or hide it?
Fileupload
File upload isn't working as expected in panel builder. I get type error when I add image() validation even when I'm uploading an image and when I dd() the data, image column returns null
Section with Tabs Displaying Repeater Items:
I want to create a section that contains Tabs. Each tab should display an item from the Repeater. This Repeater should generate several items by default upon creation. Since there are 7 linked records, I find it more convenient to have them in tab format.
The Repeater generates the tabs separately instead of including them in the same one....
Component form and list on livewire update list when saving data
Hello guys, I have a question with livewire, could anyone indicate any material on how to do this? Or someone can give a help
- I have a form component, when saving I want to update the listing
- Listing component should receive the update of the form data
...
Hide default action buttons
Hey i try to remove default actions buttons like "Create", "Create & create another", "Cancel", but i cannot find any informatio in docs about that. I'am using wizard and my own buttons to save the form.
Solution:
if you are using a wizard, you should do this
https://filamentphp.com/docs/3.x/panels/resources/creating-records#using-a-wizard...
Open modal after page load
Hey guys,
I have a table which has only modal (slideOver) to edit / create entries.
Now I'd like to create a button from another resource to the target resource and open directly after loading the "create" modal.
...
Solution:
got it 🙂
instead of
```php
->url(InvitationResource::getUrl('index', ['create' => true]))...
Different Filter Layouts by media-query
Guys, is it possible to have a "FiltersLayout::Dropdown" for Mobile and "FiltersLayout::AboveContent" for Desktop?
Multiple panels login issue
I have 2 panels
/admin
/client
the user that im testing right now can access client
, but not admin
...How to Filter by virtual attribute.
Hi, in my model I have some attributes that are virtual, that is, they do not actually exist in the database table. I would like to know if it is possible to use them in the Table Builder filters? If so, how do I proceed with this so as not to generate an error of an inexistent column in the database. Thank you.
Solution:
The filters query against the database, so you're not going to be able to filter against anything that is not part of the model at the database level.
Nested Relationships data not beeing saved
I'm currently working on a form to my Aluno model. Aluno belongs to Pessoa and Pessoa belongs to Endereco:
Aluno->pessoa->endereco
Even with relations defined, only Aluno and Pessoa are saved on create, for some reason, Endereco is not. All three are saved normally on Edit, i suppose that is because of belongsTo, but i'm not 100% sure and if is, is there a way to workaround? Here's the gist with the files. I can also create a test case if necessary. https://gist.github.com/JonatasBSM/17556af27f1d128c318010b62c574fe3...
Include sorting of hidden columns
Hello everyone. How do I add columns to the Sort dropdown without this column being visible in the table?
ListRecords with tabs and selectColumn
Hi!
My user list page has tabs with badges, counting users in each state. The table has a SelectColumn to change that state.
How can I refresh the tab badges to refresh the new user status count?
Thanks!...
Plugin causing Error on VIEW
I'm using Cheesegrits' Geocomplete plugin and when I view a record in panel model, it causes an error. Is there a way to make it conditional or have it work and prefilled like other form inputs?
Solution:
I ended using infolist to view data and solved the issue.