Zen Nitiruj
Zen Nitiruj
FFilament
Created by KingNii on 10/14/2024 in #❓┊help
Select input not working when searchable is appended
Have you update to Filament 3.2.119? it will fix.
22 replies
FFilament
Created by Martin Oscar on 10/18/2024 in #❓┊help
use `configureUsing` to avoid repetition
No description
23 replies
FFilament
Created by loco on 10/18/2024 in #❓┊help
Grouping Rows with Closure/Tree relation
Because you say group('name'), then it group by name. If you wan to group by parent_product_id, just say group('parent_product_id')
6 replies
FFilament
Created by Michael Rezende on 10/18/2024 in #❓┊help
Change the size of the Stats Overview Widget
I customed its view page like this
@php
$columns = $this->getColumns();
@endphp

<x-filament-widgets::widget class="fi-wi-stats-overview">
<div @if ($pollingInterval = $this->getPollingInterval()) wire:poll.{{ $pollingInterval }} @endif @class([
'fi-wi-stats-overview-stats-ctn grid gap-6 grid-cols-2',
'md:grid-cols-1' => $columns === 1,
'md:grid-cols-2' => $columns === 2,
'md:grid-cols-3' => $columns === 3,
'md:grid-cols-4' => $columns === 4,
'md:grid-cols-5 xl:grid-cols-5' => $columns === 5,
])>
@foreach ($this->getCachedStats() as $stat)
{{ $stat }}
@endforeach
@php
$columns = $this->getColumns();
@endphp

<x-filament-widgets::widget class="fi-wi-stats-overview">
<div @if ($pollingInterval = $this->getPollingInterval()) wire:poll.{{ $pollingInterval }} @endif @class([
'fi-wi-stats-overview-stats-ctn grid gap-6 grid-cols-2',
'md:grid-cols-1' => $columns === 1,
'md:grid-cols-2' => $columns === 2,
'md:grid-cols-3' => $columns === 3,
'md:grid-cols-4' => $columns === 4,
'md:grid-cols-5 xl:grid-cols-5' => $columns === 5,
])>
@foreach ($this->getCachedStats() as $stat)
{{ $stat }}
@endforeach
</div> </x-filament-widgets::widget>
4 replies
FFilament
Created by TheSoulrester on 10/17/2024 in #❓┊help
widget width "$columnSpan = 'full';" doesn't work with blade-templates
Have you try to put this function
public function getColumnSpan(): int | string | array
{
return [
'default' => 1,
'sm' => 2,
'md' => 2,
'lg' => 2
];
}
public function getColumnSpan(): int | string | array
{
return [
'default' => 1,
'sm' => 2,
'md' => 2,
'lg' => 2
];
}
24 replies
FFilament
Created by Hung Thai on 10/17/2024 in #❓┊help
How can I get the parent Resource from RelationManager class?
Why don't use just use UserResource::somethod() but if you want to use the record use $livewire->getOwnerRecord()
6 replies
FFilament
Created by Zen Nitiruj on 10/16/2024 in #❓┊help
I suddenly got issue on Repeater after running composer update
It seems that the issue is on native javascript. It work when remove ->native(false)
9 replies
FFilament
Created by pinpointzero on 10/9/2024 in #❓┊help
Automatic Filament ViewAction on Livewire component
Do you use Filament UserResource or just Livewire component?
6 replies
FFilament
Created by itsmejyv on 8/31/2024 in #❓┊help
Can I customize the login page of filament?
If you say design it is even more simple, by just publish views and edit the file you want. php artisan vendor:publish --tags="filament-panels-views"
7 replies
FFilament
Created by atabegruslan on 8/27/2024 in #❓┊help
Conditionally add and update relations
You can add ->authorize() in your action component. In this case, you are using Repeater you can customize addAction by follow with https://filamentphp.com/docs/3.x/forms/fields/repeater ->addAction(fn($action)=> $action->authorize(...
16 replies
FFilament
Created by itsmejyv on 8/31/2024 in #❓┊help
Can I customize the login page of filament?
You may use your own login class like this
$panel->login([\Laravel\Fortify\Http\Controllers\AuthenticatedSessionController::class, 'create'])
$panel->login([\Laravel\Fortify\Http\Controllers\AuthenticatedSessionController::class, 'create'])
7 replies
FFilament
Created by Zen Nitiruj on 8/30/2024 in #❓┊help
How to override all ViewRecord pages getView() function
I got this php artisan vendor:publish --tags="filament-panels-views " But It comes out all views. Is there anyway to specific a single file.
4 replies
FFilament
Created by Zen Nitiruj on 8/30/2024 in #❓┊help
How to override all ViewRecord pages getView() function
I am thinking another way around. If I want to do a plugin to fix this. The first question would be can I publish the view filament-panels::resources.pages.view-record ?
4 replies
FFilament
Created by Alnuaimi on 3/17/2024 in #❓┊help
auth()->user()->is_admin inside AdminPanel Provider return null
Have you set attribute is_admin for user model?
14 replies
FFilament
Created by Zen Nitiruj on 8/29/2024 in #❓┊help
Relationship Manager AttachAction custom form
I just found that I could not do it from function configureAttachAction, but it works on header action extensiion itself.
$table->headerActions([
Tables\Actions\AttachAction::make()
->form(fn(AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\Select::make('training_session_id')
->options(
\App\Models\TrainingSession::where('training_id', $this->getOwnerRecord()->id)->pluck('name', 'id')
)
])
->action(
function (array $arguments, array $data, Form $form, Table $table, AttachAction $action): void {
$this->doAttach($arguments, $data, $form, $table, $action);
}
)
->attachAnother(false),
])
$table->headerActions([
Tables\Actions\AttachAction::make()
->form(fn(AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\Select::make('training_session_id')
->options(
\App\Models\TrainingSession::where('training_id', $this->getOwnerRecord()->id)->pluck('name', 'id')
)
])
->action(
function (array $arguments, array $data, Form $form, Table $table, AttachAction $action): void {
$this->doAttach($arguments, $data, $form, $table, $action);
}
)
->attachAnother(false),
])
4 replies
FFilament
Created by nowak on 8/22/2024 in #❓┊help
Slow action modal opening times on resource table
It looks complicated. Look like you try to get all in formation loaded in the table. Each table record will queries many many times. I would think that you should make another database table for this. If your data have been saved to another table like group_order_management, where they created final result. Then your model GroupOrderManagement and This resource will just load quickly in table.
27 replies
FFilament
Created by mile4841 on 8/23/2024 in #❓┊help
Why selectColumn is not working
I think, it should be many to many relationship in to table model_has_roles. Anyway, if you just want a user has only a role, you may do this and set role_id in user table to make relationship. Doing that you should not use Shield, it totally different design.
8 replies
FFilament
Created by ericmp on 8/23/2024 in #❓┊help
Sometimes In Prod I Go To Login And Get Route Login Not Found
I made it this way. But I also don't like it. Still look for better way.
Route::middleware('guest')->group(function () {
Route::redirect('/', config('app.url') . '/admin/login')->name('login');
});`
Route::middleware('guest')->group(function () {
Route::redirect('/', config('app.url') . '/admin/login')->name('login');
});`
4 replies
FFilament
Created by Zen Nitiruj on 8/23/2024 in #❓┊help
TableWidget using Resource Table but View does not got to view page
No description
2 replies
FFilament
Created by BKF Dev on 8/20/2024 in #❓┊help
Bug in v3.2.105
Fixed, thank you very much.
28 replies