Kaesa Lyrih
Kaesa Lyrih
FFilament
Created by Arlyzatun on 3/21/2025 in #❓┊help
i want to change routes login in filament
U can make new panel for User. AdminPanelProvider using path (admin) && UserPanelProvider using path(/)
9 replies
FFilament
Created by Arlyzatun on 3/21/2025 in #❓┊help
i want to change routes login in filament
Try it
return $panel
->default()
->id('admin')
->path('/')
->login()
->colors([
'primary' => Color::Blue,
]);
return $panel
->default()
->id('admin')
->path('/')
->login()
->colors([
'primary' => Color::Blue,
]);
9 replies
FFilament
Created by Señor Nikola on 3/11/2025 in #❓┊help
Strange Issue with Filament and API Routes
Maybe cause route name login not found.
//routes/web.php
Route::get('/login', fn() => redirect()->route('filament.admin.auth.login'))->name('login');
//routes/web.php
Route::get('/login', fn() => redirect()->route('filament.admin.auth.login'))->name('login');
18 replies
FFilament
Created by Milorn on 3/1/2025 in #❓┊help
Filament curator upload error
weh new bug.. cause refactor to in helper.
8 replies
FFilament
Created by Dan Harrin on 2/27/2025 in #❓┊help
Help Us Improve Filament’s Docs & Education in v4
Update documentation about Action Filament: 1. Filament Actions vs Laravel Actions
- Is there any documentation explaining the difference between Filament actions and Laravel actions? If such an explanation exists, it would be really helpful.
2. Injecting app/Actions/CreateUser.php into Filament\Actions\CreateAction::make()
- How can I inject app/Actions/CreateUser.php into Filament\Actions\CreateAction::make()?
- In some cases, I want my business logic—such as creating a user in the database, sending an email, notifying the admin, etc.—to reside in app/Actions/CreateUser.php.
- If there is any official guidance on this, that would be great.
3. Getting the current model in EditAction
- How can I get the current model's data inside EditAction?
- I need to pass the current model's data to the modal form inside the action.
- Is there any documentation related to this?
4. Missing php artisan make:filament-action
- It seems like there is no php artisan make:filament-action command yet.
- Are there any plans to introduce this command?
69 replies
FFilament
Created by Dan Harrin on 2/27/2025 in #❓┊help
Help Us Improve Filament’s Docs & Education in v4
I hope new docs, add example with screenshots more and more.
69 replies
FFilament
Created by TheAbhishekIN on 4/15/2024 in #❓┊help
is there any filament feature or plugin available for mention users ?
8 replies
FFilament
Created by IWBW on 5/30/2024 in #❓┊help
Profile view and profile edit
13 replies
FFilament
Created by IWBW on 5/30/2024 in #❓┊help
Profile view and profile edit
Try to custom page ->profile(page: CustomPageViewProfile::class)
13 replies
FFilament
Created by arif on 5/28/2024 in #❓┊help
Displaying data without an ID or primary key
Try add:
// ...
protected $primaryKey = 'NIK';
public $incrementing = false;
protected $keyType = 'string';
// ...
// ...
protected $primaryKey = 'NIK';
public $incrementing = false;
protected $keyType = 'string';
// ...
3 replies
FFilament
Created by Kaesa Lyrih on 5/19/2024 in #❓┊help
Can Query Model Pivot Custom Table without field id?
- Custom Table Livewire ListStudentEnrollments
<?php

// ...

class ListStudentEnrollments extends Component implements HasForms, HasTable
{
use InteractsWithForms;
use InteractsWithTable;

public function table(Table $table): Table
{
return $table
->query(Enrollment::query())
->columns([
Tables\Columns\TextColumn::make('classroom.name')
->sortable(),
Tables\Columns\TextColumn::make('classroom.end_date')
->dateTime()
->sortable(),
])
->filters([
//
])
->actions([
//
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
//
]),
]);
}

public function render(): View
{
return view('livewire.guardian.list-student-enrollments');
}
}
<?php

// ...

class ListStudentEnrollments extends Component implements HasForms, HasTable
{
use InteractsWithForms;
use InteractsWithTable;

public function table(Table $table): Table
{
return $table
->query(Enrollment::query())
->columns([
Tables\Columns\TextColumn::make('classroom.name')
->sortable(),
Tables\Columns\TextColumn::make('classroom.end_date')
->dateTime()
->sortable(),
])
->filters([
//
])
->actions([
//
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
//
]),
]);
}

public function render(): View
{
return view('livewire.guardian.list-student-enrollments');
}
}
5 replies
FFilament
Created by Kaesa Lyrih on 5/19/2024 in #❓┊help
Can Query Model Pivot Custom Table without field id?
- Pivot Model Enrollment
protected $table = 'enrollments';
protected $foreignKey = 'classroom_id';
protected $relatedKey = 'student_id';
public $incrementing = false;

public function classroom(): BelongsTo
{
return $this->belongsTo(Classroom::class);
}

public function student(): BelongsTo
{
return $this->belongsTo(Student::class);
}
protected $table = 'enrollments';
protected $foreignKey = 'classroom_id';
protected $relatedKey = 'student_id';
public $incrementing = false;

public function classroom(): BelongsTo
{
return $this->belongsTo(Classroom::class);
}

public function student(): BelongsTo
{
return $this->belongsTo(Student::class);
}
5 replies
FFilament
Created by Kaesa Lyrih on 5/19/2024 in #❓┊help
Can Query Model Pivot Custom Table without field id?
- Table enrollments
Schema::create('enrollments', function (Blueprint $table) {
$table->unsignedBiginteger('classroom_id')->unsigned();
$table->unsignedBiginteger('student_id')->unsigned();
$table->foreign('classroom_id')->on('classrooms')->references('id')->onDelete('cascade');
$table->foreign('student_id')->on('students')->references('id')->onDelete('cascade');
$table->primary(['classroom_id', 'student_id']);
$table->timestamps();
});
Schema::create('enrollments', function (Blueprint $table) {
$table->unsignedBiginteger('classroom_id')->unsigned();
$table->unsignedBiginteger('student_id')->unsigned();
$table->foreign('classroom_id')->on('classrooms')->references('id')->onDelete('cascade');
$table->foreign('student_id')->on('students')->references('id')->onDelete('cascade');
$table->primary(['classroom_id', 'student_id']);
$table->timestamps();
});
5 replies
FFilament
Created by Kaesa Lyrih on 5/7/2024 in #❓┊help
how to get data in action child from action parent?
My study case, solve with action chanining. https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#chaining-actions
class ManageFinancialTransactions extends ManageRecords
{
protected static string $resource = FinancialTransactionResource::class;

protected function getHeaderActions(): array
{
return [
Action::make('generate_report_pdf')
->model(FinancialTransaction::class)
->form([
Select::make('wallet_id'),
DatePicker::make('start_transaction_at'),
DatePicker::make('end_transaction_at'),
])
->action(function (array $data) {
$this->replaceMountedAction('viewPdf',arguments: $data);
})
];
}

public function viewPdfAction(): Action
{
return Action::make('name_action')
->modal()
->modalContent(
function ($record, $livewire, $action, $arguments, $data) {
dd([$record, $livewire, $action, $arguments, $data]);
$object = view('components.object-pdf', [
'src' => route('admin.financial-transactions.pdf', [
'filter' => $arguments
])
]);
return $object;
}
)
->slideOver()
->modalSubmitAction(false)
->modalCancelAction(false);
}
}
class ManageFinancialTransactions extends ManageRecords
{
protected static string $resource = FinancialTransactionResource::class;

protected function getHeaderActions(): array
{
return [
Action::make('generate_report_pdf')
->model(FinancialTransaction::class)
->form([
Select::make('wallet_id'),
DatePicker::make('start_transaction_at'),
DatePicker::make('end_transaction_at'),
])
->action(function (array $data) {
$this->replaceMountedAction('viewPdf',arguments: $data);
})
];
}

public function viewPdfAction(): Action
{
return Action::make('name_action')
->modal()
->modalContent(
function ($record, $livewire, $action, $arguments, $data) {
dd([$record, $livewire, $action, $arguments, $data]);
$object = view('components.object-pdf', [
'src' => route('admin.financial-transactions.pdf', [
'filter' => $arguments
])
]);
return $object;
}
)
->slideOver()
->modalSubmitAction(false)
->modalCancelAction(false);
}
}
6 replies
FFilament
Created by Kaesa Lyrih on 5/7/2024 in #❓┊help
how to get data in action child from action parent?
problem, validated form data not work in extraModalFooterActions, humm.
6 replies
FFilament
Created by Kaesa Lyrih on 5/7/2024 in #❓┊help
how to get data in action child from action parent?
I temp solve using $livewire->mountedActionsData[0] to get data action perent, any other solution?
Action::make('child_action')
->modal()
->modalContent(function ($record, $livewire) use ($action, $arguments, $data) {
dd([
$data,
$record,
$livewire->mountedActionsData[0],
$arguments,
$action
]);
$object = '...';
return str($object)->toHtmlString();
}),
Action::make('child_action')
->modal()
->modalContent(function ($record, $livewire) use ($action, $arguments, $data) {
dd([
$data,
$record,
$livewire->mountedActionsData[0],
$arguments,
$action
]);
$object = '...';
return str($object)->toHtmlString();
}),
6 replies
FFilament
Created by Kaesa Lyrih on 5/7/2024 in #❓┊help
how to get data in action child from action parent?
dd([$data, $record, $livewire, $arguments, $action]);
// result:
// $data = [],
// $record = null,
// $livewire = ManageTransaciton::class
// $arguments = [],
// $action = Action::class
dd([$data, $record, $livewire, $arguments, $action]);
// result:
// $data = [],
// $record = null,
// $livewire = ManageTransaciton::class
// $arguments = [],
// $action = Action::class
How to get data form Action parent_action to child Action child_action modalContent()?
6 replies