heat23.
heat23.
FFilament
Created by heat23. on 7/15/2024 in #❓┊help
Best way to sort / change order data in a table?
I have a Livewire Filament Table with data and I would like to allow the user to change the order of the data (and update the display_order field in the database). Is there somethinb built-in with Filament that will help me with this? I would like the user to drag-and-drop the row to where they want it. Thanks in advance!
5 replies
FFilament
Created by heat23. on 7/13/2024 in #❓┊help
SelectFilter with relationship help...
I am using the standalone Table builder in my Laravel app. I would like to add a drop-down filter where all the options are listed and come from the database. Here is what I have so far:
php
SelectFilter::make('type')
->multiple()
->relationship('type', 'name')
php
SelectFilter::make('type')
->multiple()
->relationship('type', 'name')
However, in the UI, I'm not given a drop-down list to choose from - I have a Search box. How do I change this to a drop-down?
3 replies
FFilament
Created by heat23. on 7/13/2024 in #❓┊help
Help with Table Builder (Livewire) and passing in data
I see there is a query() method, but suppose I already have a Collection of results. How do I output that into the table?
php public Project $project;

public function mount(Project $project)
{
$this->project = $project;
}

public function table(Table $table): Table
{
return $table
->query($this->project->testcases())
->columns([
TextColumn::make('name')
->searchable(),
// TextColumn::make('section.name')
// ->searchable()

])
->filters([])
->actions([])
->bulkActions([]);
}
php public Project $project;

public function mount(Project $project)
{
$this->project = $project;
}

public function table(Table $table): Table
{
return $table
->query($this->project->testcases())
->columns([
TextColumn::make('name')
->searchable(),
// TextColumn::make('section.name')
// ->searchable()

])
->filters([])
->actions([])
->bulkActions([]);
}
2 replies
FFilament
Created by heat23. on 7/2/2024 in #❓┊help
How do I change the font size in Filament forms?
I installed Filament Forms to be used within Livewire. I found that the text size of all of the form elements and error messages are too small. How do I change this?
11 replies
FFilament
Created by heat23. on 7/2/2024 in #❓┊help
Backend Form validation example?
I'm using Filament Forms package in a Livewire component. Does anyone have a working example of how to do backend validation with Filament forms?
3 replies
FFilament
Created by heat23. on 7/2/2024 in #❓┊help
How do I open a Filament Form in a Modal?
I just installed Filament Forms to my Larvel 11 project. I want to open a Filament form in a Modal when a user clicks on a link or button. Does filament provide this functionality? I see from the doc that WITHIN a filament form that a modal can be added...
3 replies
FFilament
Created by heat23. on 7/2/2024 in #❓┊help
"Unresolvable dependency " on new Filamant Forms installation
Just installed Filament Forms 3.2 on top of my existing Laravel 11 / Livewire website. After installation, when I try to access my existing home page I am getting the error: Unresolvable dependency resolving [Parameter #0 [ <required> string $name ]] in class BladeUI\Icons\Components\Icon and stacktrace is highlighting this line <x-icon class="text-gray-400" type="search" /> What would cause this problem?
2 replies
FFilament
Created by heat23. on 6/26/2024 in #❓┊help
How to visually manage hierarchies?
I will be building a hierachy of one-to-many relationships for Product->Team->Services. Is there an easy way to visually represent this? Further more, is there a way to use drag and drop to configure the relationships?
2 replies
FFilament
Created by heat23. on 6/25/2024 in #❓┊help
Getting Started: Where is the Treatments Form?
No description
13 replies
FFilament
Created by heat23. on 6/14/2024 in #❓┊help
Difference between using Livewire vs Resource for Filament Forms?
I have Laravel 11 and just installed Filament to use for my end-user facing website (not admin). I see examples that use both Livewire Component as well as "Resource". What is the difference? Pros/Cons?
8 replies
FFilament
Created by heat23. on 6/14/2024 in #❓┊help
Beginner form question - Field value is 'null'
Here is my form code:
public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('subject')->maxLength(255)->required(),
Textarea::make('message')->minLength(10)->maxLength(50000),
])
->statePath('data');
}

public function create(): void
{
dd($this->form->getState());
}
public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('subject')->maxLength(255)->required(),
Textarea::make('message')->minLength(10)->maxLength(50000),
])
->statePath('data');
}

public function create(): void
{
dd($this->form->getState());
}
When I input values in both fields and hit Submit, the dd() output is correct for 'subject' but shows 'null' for the 'message' field. Any ideas on why this is happening?
12 replies
FFilament
Created by heat23. on 6/13/2024 in #❓┊help
Getting started with Filament 3.3 - Need beginner help with FORMS
I have Laravel 11 and I just installed filament forms and actions but having issues getting the most basic form created and displayed. Do I add my code to a normal Laravel controller? Do I make a livewire component? Please help me get started with a basic example.
53 replies