LeandroFerreira
LeandroFerreira
FFilament
Created by EpicKau on 3/29/2025 in #❓┊help
Dispatch event from afterStateUpdated to another field?
Did you create a preview custom field ? I think $set('preview', $get('content')); should work and you are able to access the preview state in the view using $getState()
<!-- resources/views/forms/components/preview.blade.php -->
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
{{ var_export($getState()) }}

</x-dynamic-component>
<!-- resources/views/forms/components/preview.blade.php -->
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
{{ var_export($getState()) }}

</x-dynamic-component>
4 replies
FFilament
Created by terumi on 12/5/2024 in #❓┊help
Guest pages using the filament layout.
in the vite.config.js file, remove tailwindcss()
13 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
You could also try the same test in another Filament fresh install
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
I recommend double checking your env because definitely dd(app()->runningUnitTests()); should return true..
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
are you running the test inside the container?
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
are you using docker?
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
what is the APP_ENV value from phpunit.xml file?
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
add the dd inside the test..
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
dd(app()->runningUnitTests()); what is the output?
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
what is the error?
21 replies
FFilament
Created by Héctor Q. Torres on 3/27/2025 in #❓┊help
Target class [livewire] does not exist.
dd(app()->runningUnitTests()); what is the output?
21 replies
FFilament
Created by coaster on 3/27/2025 in #❓┊help
Running action throws "using $this when not in object context"
->action(function (Post $record, Page $livewire)... then, use $livewire->dispatch(..
4 replies
FFilament
Created by _andypeacock on 3/27/2025 in #❓┊help
Checkboxlist - disable click on label
try
.fi-fo-checkbox-list-option-label {
@apply pointer-events-none;
}

.fi-checkbox-input {
@apply pointer-events-auto;
}
.fi-fo-checkbox-list-option-label {
@apply pointer-events-none;
}

.fi-checkbox-input {
@apply pointer-events-auto;
}
don't forget to create a custom theme
5 replies
FFilament
Created by jmrufo on 3/27/2025 in #❓┊help
Display data based on the option selected in select
I think this section can help you. What code did you try?
3 replies
FFilament
Created by Mocus on 3/27/2025 in #❓┊help
custom page form from resource
ahh ok, try return static::$resource::form($form);
7 replies
FFilament
Created by Mocus on 3/27/2025 in #❓┊help
custom page form from resource
what didn't work?
7 replies
FFilament
Created by Mocus on 3/27/2025 in #❓┊help
custom page form from resource
try return YourResource::form($form);
7 replies
FFilament
Created by Mark Chaney on 3/24/2025 in #❓┊help
Default Resource Index instead of Dashboard for Panel?
create a CustomLoginResponse
class CustomLoginResponse extends LoginResponse
{
public function toResponse($request): RedirectResponse|Redirector
{
return redirect()->intended(YourResource::getUrl());
}
}
class CustomLoginResponse extends LoginResponse
{
public function toResponse($request): RedirectResponse|Redirector
{
return redirect()->intended(YourResource::getUrl());
}
}
In your panel:
return $panel
...
->bootUsing(function (): void {
app()->bind(LoginResponse::class, CustomLoginResponse::class);
})
return $panel
...
->bootUsing(function (): void {
app()->bind(LoginResponse::class, CustomLoginResponse::class);
})
8 replies
FFilament
Created by raheel3031 on 3/16/2025 in #❓┊help
Layout fields in modal importer
It is a Fieldset component that contains columns(1) according to this trait
Fieldset::make(__('filament-actions::import.modal.form.columns.label'))
->columns(1)
Fieldset::make(__('filament-actions::import.modal.form.columns.label'))
->columns(1)
I think it is possible to change the columns to 2, but you need to create your own Action, extend the default Action, and override the Fieldset column component.
3 replies
FFilament
Created by Chetan-archer-dev on 3/17/2025 in #❓┊help
wanted to hide submit button of wizard from when form submitted and show thank you message
the submit button is rendered on the last step. Maybe you could hide the wizard and show a custom message after the form is submitted:
public bool $showMessage = false;
...

Wizard::make([
Wizard\Step::make('Step...')
->schema([
// ...
]),
])
->hidden(fn (): bool => $this->showMessage)
->submitAction(new HtmlString(Blade::render(<<<'BLADE'
<x-filament::button
type="submit"
size="sm"
>
Submit
</x-filament::button>
BLADE))),

Placeholder::make('message')
->content('The form was submitted successfully!')
->visible(fn (): bool => $this->showMessage)
public bool $showMessage = false;
...

Wizard::make([
Wizard\Step::make('Step...')
->schema([
// ...
]),
])
->hidden(fn (): bool => $this->showMessage)
->submitAction(new HtmlString(Blade::render(<<<'BLADE'
<x-filament::button
type="submit"
size="sm"
>
Submit
</x-filament::button>
BLADE))),

Placeholder::make('message')
->content('The form was submitted successfully!')
->visible(fn (): bool => $this->showMessage)
4 replies