Filament

F

Filament

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

Join

Public method [mountAction] not found on component when adding an action to Livewire component.

Hi. I'm trying to add an action to Livewire component like mentioned in documentation : https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component. I've got the following error : Unable to call component method. Public method [mountAction] not found on component. `public function goLiveAction(): Action...

Fill form with fallback locale

Hey, in the past when a form has only the fallback locale set, the current selected locale was filled with the fallback locale. Now all the fields are empty and not filled with the fallback. Is this a bug or did I miss some settings?

keep a button for create in view getRelationManager()

hi gus, how can i keep a button for create a new form in getRelationManager but in a view??
No description

Is it possible to add the ->requires Confirmation() method modal using the Button blade Component?

Is it possible to add the ->requires Confirmation() method modal using the Button blade Component?

Why wire:dirty not working with <x-filament::> components ?

Hi guys ! I'm writing some custom Livewire components and I'm using some Filament blade components inside of them to keep the UI consistent. I'm trying to use wire:dirty on a Filament button but it doesn't work. It works on a basic HTML button, do you know why ? ```js...

Soft deleted records don't show after applying filter

I'm having weird problem with filament, I have 4 soft deleted profiles and added a filter to show them in ProfileResource, but none are getting shown in table, if I dd the query it's also showing correct SQL for return $query->onlyTrashed(): Sql dump: `` "select * from profiles where profiles.deleted_at is not null and profiles.account_id` in (?)" // app/Filament/App/Resources/ProfileResource.php:327...
No description

Is it possible to open a relationshipmanager in a modal from the list records view?

I want to open a relationshipmanager of a record in a modal from the list records view. Is this possible via a table action?

How to use Markdown Editor / Richeditor in a Blade file?

How can I use the markdown editor / richeditor in my custom view page?

Verify email before check subscription

I created a middleware to check if a user's subscription (Cashier) is active. However, I have a problem: the subscription check is performed before the email verification check. How can I solve this? Thanks!...

Remember me button in login

i need to remove the Remember me button how can i do this

How can I change the default login page route in Filament?

I'm trying to customize the login route to /admin-login instead of /login. However, after trying to access an unauthorized page, it redirects me to the default /login instead of the /admin-login route I created. How can I configure this correctly without breaking Filament's authentication? Any help would be appreciated

The POST method is not supported for route admin/login for custom login page

Hello, I have an issue with a custom login page in Laravel 11 with Filament 3. When I submit the form, I get the error: "The POST method is not supported for route admin/login. Supported methods: GET, HEAD." ...

wire:loading Not Triggering During Action Dispatch in Filament

I'm having trouble getting the wire:loading indicator to show when dispatching an event from a Filament action. The action works, but the loading spinner doesn’t appear. Here's the code I'm using: ` Tables\Actions\Action::make('test') ->dispatch('triggerPrint', ['action' => 'print', 'element' => 1]),...

table layout styling

So whenever I implement layout functionality such as Split or stack. The entire table just keels over. ```php ->columns([ Tables\Columns\TextColumn::make('id')...
No description

How do you dispatch an event inside a custom page that isn't blocking with defer?

defer(function(){ $this->dispatch('customer-synced', '5XY7BSBN88S60'); }); When the dispatch isn't wrapped in a defer it works but it blocks....

How to pass some data to my custom view(livewire component) in filament table action?

Hi, This is my filament table action. ``` Action::make('setting')...

How do I make text based boolean columns

If i have a boolean column that I would want to display as text instead of an icon, ->boolean doesnt exist on TEXTCOLUMN This example the column references 'is_book' where a false value would mean it is a magazine instead of a book. So I'd like the column labeled "type" to display either 'book', or 'magazine' depending on true or false....

Fileupload: How to show a default image that the user can override with their own image

Basically I want to show a default image in the file upload form that the users can choose to replace by uploading their own image. Couldn't find an easy way to do this in the docs (but I think I am probably missing something) Thanks.

Don't want Create Form to show if No Subscription

I want to show No Subscription notification without showing Create Form when user clicks on Create button in List Page. I have this in create page. I also tried beforeFill but halt gives error. ``` protected function handleRecordCreation(array $data): Model { $data['reference'] = RandomStringGeneratorService::generateRandomString(); $data['member_id'] = Auth::user()->member->id; ...
Solution:
I created custom create action listpage. ``` protected function getHeaderActions(): array { return [ Actions\Action::make('create') ->label('Create Job Seeking Post')...

How can I add a client side error message to FileUpload?

When uploading a file that is either not the correct file type, or larger than 2 megabytes, the light gray "x" icon jiggles, but I'd like to add a client side error message as to why the error occurred. It seems that `->validationMessages()" does not do this. How can I add friednly messages specific to each validation? ```php FileUpload::make('image') ->maxSize(2048)...