WrkL
WrkL
FFilament
Created by WrkL on 6/27/2024 in #❓┊help
Repeater keybindings
Thanks!!
5 replies
FFilament
Created by Hanai on 12/19/2023 in #❓┊help
can’t make user yo my admin panel
'field' => bcrypt('password')
34 replies
FFilament
Created by Hanai on 12/19/2023 in #❓┊help
can’t make user yo my admin panel
you shouldnt change password directly from phpmyadmin
34 replies
FFilament
Created by Hanai on 12/19/2023 in #❓┊help
can’t make user yo my admin panel
should use bcrypt('your-password-here')
34 replies
FFilament
Created by Hanai on 12/19/2023 in #❓┊help
can’t make user yo my admin panel
did you store a plain text to the password field ?
34 replies
FFilament
Created by WrkL on 12/8/2023 in #❓┊help
Textfield with masking in Repeater
anyone know how to solve this ?
3 replies
FFilament
Created by dyo on 12/6/2023 in #❓┊help
Create dependancy select filter
not sure for the built in Filament\Tables\Filters\SelectFilter but you can with the custom filter https://filamentphp.com/docs/3.x/tables/filters/custom
Filter::make('xxxx')
->form([
Select::make('user_id')
->options([
1 => 'a',
2 => 'b'
])
->reactive(),
Select::make('another_id')
->options(fn ($get) => Model::whereIn('user_id', $get('user_id'))->pluck('name', 'id'))
])
->query(function (Builder $query, array $data): Builder {
// your filter query
})
Filter::make('xxxx')
->form([
Select::make('user_id')
->options([
1 => 'a',
2 => 'b'
])
->reactive(),
Select::make('another_id')
->options(fn ($get) => Model::whereIn('user_id', $get('user_id'))->pluck('name', 'id'))
])
->query(function (Builder $query, array $data): Builder {
// your filter query
})
4 replies
FFilament
Created by WrkL on 9/8/2023 in #❓┊help
Refresh form data on action
No description
8 replies
FFilament
Created by WrkL on 9/8/2023 in #❓┊help
Refresh form data on action
in a livewire component that have form with form builder and a button to trigger refresh
8 replies
FFilament
Created by fadil on 7/24/2023 in #❓┊help
teach we about query logic in filament
11 replies
FFilament
Created by Naren on 6/20/2023 in #❓┊help
Updating parent form state from a child component in Filament's Repeater
10 replies
FFilament
Created by Naren on 6/20/2023 in #❓┊help
Updating parent form state from a child component in Filament's Repeater
seems you are going to calculate the days_taken based on the repeater value right ? dont know if i am doing it wrong but it work in my case
Repeater::make('sales')
->schema([
Select::make('item')
->options(MdPriceList::pluck('material_number', 'id'))
->reactive()
->required()
->afterStateUpdated(fn ($state, callable $set) => $set('price', number_format(MdPriceList::find($state)?->amount) ?? 0))
->searchable(),
TextInput::make('price')
->reactive(),
])
->disableItemMovement()
->columns(2),
Placeholder::make('total')
->content(function ($get) {
$contet = collect($get('sales'))->map(function ($item) {
return [
'price' => $item['price'] ? Str::remove(',', $item['price']) : 0,
];
})->sum('price');
return number_format($contet, 2);
}),
Repeater::make('sales')
->schema([
Select::make('item')
->options(MdPriceList::pluck('material_number', 'id'))
->reactive()
->required()
->afterStateUpdated(fn ($state, callable $set) => $set('price', number_format(MdPriceList::find($state)?->amount) ?? 0))
->searchable(),
TextInput::make('price')
->reactive(),
])
->disableItemMovement()
->columns(2),
Placeholder::make('total')
->content(function ($get) {
$contet = collect($get('sales'))->map(function ($item) {
return [
'price' => $item['price'] ? Str::remove(',', $item['price']) : 0,
];
})->sum('price');
return number_format($contet, 2);
}),
10 replies
FFilament
Created by WrkL on 6/8/2023 in #❓┊help
How to properly access relation data in ViewField
thanks, is there any read only field like placeholder that accept dot syntax ?
6 replies
FFilament
Created by WrkL on 3/7/2023 in #❓┊help
How to properly hide / show headerAction dynamically ?
this is my blade view
7 replies
FFilament
Created by WrkL on 3/7/2023 in #❓┊help
How to properly hide / show headerAction dynamically ?
<div class="p-5">
<x-filament::button wire:click="toggle" class="text-right">
Show / Hide Header Action
</x-filament::button>

<div class="mt-4">
Header Action : {{ $showHeaderActionsButton ? 'Hidden (true)' : 'Hidden (false)' }}
</div>

<div class="mt-4">
{{ $this->table }}
</div>
</div>
<div class="p-5">
<x-filament::button wire:click="toggle" class="text-right">
Show / Hide Header Action
</x-filament::button>

<div class="mt-4">
Header Action : {{ $showHeaderActionsButton ? 'Hidden (true)' : 'Hidden (false)' }}
</div>

<div class="mt-4">
{{ $this->table }}
</div>
</div>
7 replies
FFilament
Created by WrkL on 3/7/2023 in #❓┊help
How to properly hide / show headerAction dynamically ?
but here is my another test
7 replies
FFilament
Created by WrkL on 3/7/2023 in #❓┊help
How to properly hide / show headerAction dynamically ?
ah, i mixed up with visible
7 replies