Kaesa Lyrih
Kaesa Lyrih
FFilament
Created by Kaesa Lyrih on 8/31/2024 in #❓┊help
How to testing search select with dusk?
Can give me clue testing select and search option filament with dusk?
2 replies
FFilament
Created by Kaesa Lyrih on 5/19/2024 in #❓┊help
Can Query Model Pivot Custom Table without field id?
I'm trying to create a Custom Table with the Pivot Model Enrollment, but I encountered an error. I don't have the id field in the enrollments pivot table. How can I modify the query without using ORDER BY id? Should I add the id field to the pivot table? - Error: SQLSTATE[42703]: Undefined column: 7 ERROR: column enrollments.id does not exist LINE 1: select * from "enrollments" order by "enrollments"."id" asc ... ^
SELECT * FROM "enrollments" ORDER BY "enrollments"."id" ASC limit 10 OFFSET 0
SELECT * FROM "enrollments" ORDER BY "enrollments"."id" ASC limit 10 OFFSET 0
5 replies
FFilament
Created by Kaesa Lyrih on 5/7/2024 in #❓┊help
how to get data in action child from action parent?
I need data form Action parent_action in Action child child_action modalContent().
Actions\Action::make('parent_action')
->form([
Forms\Components\Select::make('wallet_id'),
Forms\Components\DatePicker::make('start_transaction_at'),
Forms\Components\DatePicker::make('end_transaction_at'),
])
->extraModalFooterActions(fn ($action, $arguments, $data): array => [
Actions\Action::make('child_action')
->modal()
->modalContent(
function ($record, $livewire) use ($action, $arguments, $data) {
dd([$data, $record, $livewire, $arguments, $action]);
$object = '...';
return str($object)->toHtmlString();
}
)
])
->modalSubmitAction(false),
Actions\Action::make('parent_action')
->form([
Forms\Components\Select::make('wallet_id'),
Forms\Components\DatePicker::make('start_transaction_at'),
Forms\Components\DatePicker::make('end_transaction_at'),
])
->extraModalFooterActions(fn ($action, $arguments, $data): array => [
Actions\Action::make('child_action')
->modal()
->modalContent(
function ($record, $livewire) use ($action, $arguments, $data) {
dd([$data, $record, $livewire, $arguments, $action]);
$object = '...';
return str($object)->toHtmlString();
}
)
])
->modalSubmitAction(false),
6 replies
FFilament
Created by Kaesa Lyrih on 3/29/2024 in #❓┊help
Where documentation From\Components\Group, and what different From\Components\Grid?
I need to group fields without labels, and color the background. Should I use Group or Grid? Will the Group be deprecated?
3 replies
FFilament
Created by Kaesa Lyrih on 12/11/2023 in #❓┊help
filter table column relation
How to make SelectFilter enum Columns current_school in table student via table student_product ? I want to filter this columns.
Tables\Columns\TextColumn::make('student.current_school'),
Tables\Columns\TextColumn::make('student.current_school'),
table student:
$table->enum('current_school', ['PAUD', 'TK', 'SD', 'SMP', 'SMK'])->nullable();
$table->enum('current_school', ['PAUD', 'TK', 'SD', 'SMP', 'SMK'])->nullable();
Model StudentProduct.php
public function student()
{
return $this->belongsTo(Student::class, 'student_id');
}
public function student()
{
return $this->belongsTo(Student::class, 'student_id');
}
4 replies
FFilament
Created by Kaesa Lyrih on 11/14/2023 in #❓┊help
Summarize Table RelationManager
I am attempting to use the summarize feature from Filament on a table that exists in RelationManager. However, I encounter an error:
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'id'
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'id'
When I remove $table->id() in create_package_product_table.php, the error changes to:
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'created_at'
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'created_at'
If I remove $table->timestamps() in create_package_product_table.php, the summarize feature can be used. How can I use summarize on a table in RelationManager without having to remove $table->id() and $table->timestamps()?
5 replies