Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

Why is my register page always redirecting to `/users`?

What I am trying to do: Redirect users to my main dashboard page after registering. What I did: ```...

How to Customize Filament Table Queries in Laravel: Help Needed!

Hello everyone, I hope this isn't a repeated or silly question. I've tried various searches but couldn't find the result I was hoping for. I have a table connected to a Laravel model, but the data I want to display in the Filament table is completely customized compared to the classic ->get()->all() that I believe Filament uses by default. To clarify, in my GridJobImportResource resource, I'd like the default query to be this: --- Query in the comment below ---...

Is there a way to ask the user for confirmation before reloading the web page in forms?

is there a function in forms that will ask the user for reload confirmation for not saving or haven't triggered the create button?
Solution:
You can enable ->unsavedChangesAlerts() in the panel?

Infolist and Actions confusion

Appreciate if someone can help me fill a gap in my knowledge with creating actions on infolists. I'm getting my view page infolist from the function within the resource class: ```public static function infolist(Infolist $infoList) : Infolist...
Solution:
Look further down the page of the link you shared. You’re looking for anonymous actions. Basically, you can’t include an action directly, you have to wrap it with an ‘Actions’ entry.

Custom grid structure in filament

I need to make some structural changes to the page at /admin/models/{model}/edit. This page contains a form to edit the model and uses the getRelations method to manage model relationships. Please refer to the attached photo for clarification.
No description

Get selected rows in Wizrd form

Hello guys. Im buinding a wizard form and first step I wanna have a table and make it selectable so in step I can use all selected records as form input. How can I do this? What I have is: ...

Database notification error Broadcasting [database-notifications.sent] on channels

Hi, every time i dispatch a job that has this code: ```php $agency = User::findOrFail($this->userId);...

Edit Action record refresh/reload data

This solution i'm using is working, but is it a bad practice to override the $this->record data directly? I couldn't find any related method. I'm talking about the last 3 instructions in the screenshot...
No description

Modify URI

Can we append service name to url for visibility. For an instance Disney is https://exmaple.com/services/1 but would be great if we could also use https://exmaple.com/services/disney so it’s visible when sharing urls etc.

How to re render the table

Is it possible when i update the state of mine form to re render table mine code is

add widget inside the table view

Hello, i want to add chart widget inside table view. like when i click row and go view i want to show this item widget. down size somewehere... is there any good plugin for make it simple? or anything ? i try to create widget inside
Supplier Resource
Supplier Resource
write default code which is written in documentation, also next i add ``` protected function getContent(): array { return [ SupplierWidget::class, ];...
No description

Hide edit button in relation manager table

Is there a possiblity to hide the edit button, and make the edit action when user click on table row
No description

Custom filter count is zero

I have made a custom DateFilter:
DateFilter::make('date'),
DateFilter::make('date'),
...

Add widget to header

In the header, there is the app name and user profile. How can I add other widgets and what not?

modify requiresConfirmation width

code: ```php Actions\Action::make('password_reset') ->icon('heroicon-c-shield-exclamation') ->color('warning')...
No description

Form Actions (Create and Cancel)

Can I modify the style of those actions. (label and sequence)
No description

Best security practice for filament?

Im new to this laravel landscape and just started building admin panel for my organization using filament, im confused how to secure my app, could you suggest a library or plugins to use or anything form laravel ecosystem to securing my app. thank you

Control the order of processing import records?

Is there way to control the order a csv is processed? Lets say i have a particular date column and i want to make sure rows are processed oldest to newest.

live method is rendering mine table

Hi! I have a custom filament page where i have on the same page form and table and when i press button which is form action everythin works fine. mine problem happend after first submit button than i have case when i change state of component that has live mine table re renders how i can stop re rendering table on change state of component

Admin panel does not render properly after installing filament notifications on frontend

My admin panel was working but after I followed the instructions to install filament notifications to the frontend, it is now rendering like you see on the provided image. Really don't know what to do next. I've cleared the caches on everything, recompiled the assets, noting seems to work, I think is a conflict somewhere....
No description