Gohan
Gohan
FFilament
Created by Gohan on 1/30/2025 in #❓┊help
Input Blade Component Suffix Action
How do i add a suffix action to my input blade component?
<x-filament-forms::field-wrapper>
<x-filament-forms::field-wrapper.label>
Redirect Link
</x-filament-forms::field-wrapper.label>
<x-filament::input.wrapper>
<x-filament::input type="text" wire:model="redirect_link" />
</x-filament::input.wrapper>
</x-filament-forms::field-wrapper>
<x-filament-forms::field-wrapper>
<x-filament-forms::field-wrapper.label>
Redirect Link
</x-filament-forms::field-wrapper.label>
<x-filament::input.wrapper>
<x-filament::input type="text" wire:model="redirect_link" />
</x-filament::input.wrapper>
</x-filament-forms::field-wrapper>
My goal is to have a suffix action that copies whatever text is in the input field.
12 replies
FFilament
Created by Gohan on 1/30/2025 in #❓┊help
Input Blade Component Label
How do I put a label for my input blade component?
<x-filament::input.wrapper>
<x-filament::input type="text" wire:model="name" />
</x-filament::input.wrapper>
<x-filament::input.wrapper>
<x-filament::input type="text" wire:model="name" />
</x-filament::input.wrapper>
4 replies
FFilament
Created by Gohan on 12/18/2024 in #❓┊help
How would I return a modal form in the Resource Edit Page?
The context is like this: I am in my resource's record edit page and in the form, I have a viewfield that returns a template with a button. I now have a function in the Resource's Edit Page where the getHeaderActions is located that waits for the button to be triggered. After clicking the button, the function updates some attributes of the record but something new that I wanna try is return a modal form instead for normal form use like a TextInput or a FileUpload. So far what I've tried to do is like this:
public function updateAttribute(): void
{
return Actions\Action::make('modal')
->modalHeading('Modal Heading')
->form([
FileUpload::make('files')
->label('Files')
->required()
])
->action(function (array $data) use ($record) {
// Process the file upload
});
}
public function updateAttribute(): void
{
return Actions\Action::make('modal')
->modalHeading('Modal Heading')
->form([
FileUpload::make('files')
->label('Files')
->required()
])
->action(function (array $data) use ($record) {
// Process the file upload
});
}
But when I click the button, nothing happens so I tried putting a Filament Notification before returning the action and the notification did show up but not the modal form. Any ideas?
2 replies
FFilament
Created by Gohan on 11/17/2024 in #❓┊help
Filament User Registration Error
Hello there, I'm trying to enable registration for my filament up but when I test it (local env), I get this error:
Unable to find component: [filament.pages.auth.register]
Unable to find component: [filament.pages.auth.register]
I was actually watching Kevin Mckee's Rapid Laravel Apps With Filament series where all he did was add the method
->registration()
->registration()
to the AdminPanelProvider and he was able to register a user through the login page. Any ideas why this is happening on my end? Thanks in advanced 😄
2 replies