Eskie
Eskie
FFilament
Created by matthias on 12/19/2024 in #❓┊help
Add part of filament in external Page
this is mine
@filamentStyles
@vite(['resources/css/filament/member/theme.css', 'resources/css/app.css'])
@filamentScripts
@filamentStyles
@vite(['resources/css/filament/member/theme.css', 'resources/css/app.css'])
@filamentScripts
13 replies
FFilament
Created by matthias on 12/19/2024 in #❓┊help
Add part of filament in external Page
if you want to use the style of the forms.. you must import its style
13 replies
FFilament
Created by arul on 12/16/2024 in #❓┊help
Need docker filament github link ? Pls
or use laravel sail if local
7 replies
FFilament
Created by arul on 12/16/2024 in #❓┊help
Need docker filament github link ? Pls
follow the docker file of laravel sail
7 replies
FFilament
Created by Eskie on 12/15/2024 in #❓┊help
Reorderable scroll issue
up
3 replies
FFilament
Created by Nobody on 12/16/2024 in #❓┊help
Is It Possible to Use a Single Login URL for All Roles in Filament Shield?
28 replies
FFilament
Created by Eskie on 12/14/2024 in #❓┊help
Reorderable Table not working
oh i see..
11 replies
FFilament
Created by Eskie on 12/14/2024 in #❓┊help
Reorderable Table not working
isn't that enough to add on the docs?
11 replies
FFilament
Created by Eskie on 12/14/2024 in #❓┊help
Reorderable Table not working
im using Shield plugin..
11 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
sorry for the late reply.. yes it worked! send_money_confirmation will not work.. it should be in camel case
14 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
about this.. nope.. it didn't work..
14 replies
FFilament
Created by Eskie on 12/12/2024 in #❓┊help
Asserting callMountedTableAction with form
i think i have an idea.. ill try that and if it works.. ill post my code.. thanks
7 replies
FFilament
Created by Eskie on 12/12/2024 in #❓┊help
Asserting callMountedTableAction with form
yes but in header action
7 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
I moved them to my ListXXX.php
14 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
use Filament\Forms\Components\TextInput;
use Filament\Pages\Page;
use Filament\Resources\Pages\ListRecords;
use Filament\Tables\Actions\Action;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use Filament\Forms\Components\TextInput;
use Filament\Pages\Page;
use Filament\Resources\Pages\ListRecords;
use Filament\Tables\Actions\Action;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
14 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
public function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('reference_number')
->searchable()
->sortable(),
TextColumn::make('amount')
->money('PHP')
->color(fn ($state) => $state > 0 ? 'success' : 'danger')
->sortable(),
TextColumn::make('created_at')
->label('Transaction date')
->dateTime()
->sortable(),
TextColumn::make('notes'),
])
->headerActions([
Action::make('send_money')
->label('Send Money')
->form([
TextInput::make('username')
->label('Send money to')
->placeholder('Type username')
->required()
->maxLength(255),
TextInput::make('amount')
->required()
->numeric()
->minValue(1)
->maxValue(auth()->user()->getBalance()),
])
->action(function (SendMoneyAction $send_money_action, $action, array $data, Page $livewire) {
$livewire->replaceMountedAction('send_money_confirmation');
})
->modalHeading('Send Money To Any Distributor')
->modalSubmitActionLabel('Send Money')
])
->defaultSort('created_at', 'desc');
}
public function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('reference_number')
->searchable()
->sortable(),
TextColumn::make('amount')
->money('PHP')
->color(fn ($state) => $state > 0 ? 'success' : 'danger')
->sortable(),
TextColumn::make('created_at')
->label('Transaction date')
->dateTime()
->sortable(),
TextColumn::make('notes'),
])
->headerActions([
Action::make('send_money')
->label('Send Money')
->form([
TextInput::make('username')
->label('Send money to')
->placeholder('Type username')
->required()
->maxLength(255),
TextInput::make('amount')
->required()
->numeric()
->minValue(1)
->maxValue(auth()->user()->getBalance()),
])
->action(function (SendMoneyAction $send_money_action, $action, array $data, Page $livewire) {
$livewire->replaceMountedAction('send_money_confirmation');
})
->modalHeading('Send Money To Any Distributor')
->modalSubmitActionLabel('Send Money')
])
->defaultSort('created_at', 'desc');
}
14 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
public function sendMoneyConfirmationAction(): Action
{
return Action::make('send_money_confirmation')
->requiresConfirmation()
->action(function (array $arguments) {
//...
});
}
public function sendMoneyConfirmationAction(): Action
{
return Action::make('send_money_confirmation')
->requiresConfirmation()
->action(function (array $arguments) {
//...
});
}
14 replies
FFilament
Created by neuroticimbecile on 12/11/2024 in #❓┊help
How to display text on top of all screens/pages
Use renderhooks.. example
->renderHook(
PanelsRenderHook::CONTENT_START,
fn (): string => Blade::render('@livewire(\'member.modals.send-money-confirmation-modal\')'),
)
->renderHook(
PanelsRenderHook::CONTENT_START,
fn (): string => Blade::render('@livewire(\'member.modals.send-money-confirmation-modal\')'),
)
put that in your PanelProvider class
7 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
anyone?
14 replies
FFilament
Created by Eskie on 12/10/2024 in #❓┊help
replaceMountedAction
->headerActions([
Tables\Actions\Action::make('send_money')
->label('Send Money')
->form([
TextInput::make('username')
->label('Send money to')
->placeholder('Type username')
->required()
->lazy()
->maxLength(255)
->afterStateUpdated(function (SendMoneyAction $send_money_action, $state) {
$send_money_action->search($state);
}),
TextInput::make('amount')
->required()
->numeric()
->minValue(1)
->maxValue(auth()->user()->getBalance()),
])
->registerModalActions([
Action::make('send_money_confirmation')
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
->action(function () {

})
])
->action(function (SendMoneyAction $send_money_action, $action, array $data, $livewire) {
$livewire->replaceMountedAction('send_money_confirmation');
})
->modalHeading('Send Money To Any Distributor')
->modalSubmitActionLabel('Send Money')
])
->headerActions([
Tables\Actions\Action::make('send_money')
->label('Send Money')
->form([
TextInput::make('username')
->label('Send money to')
->placeholder('Type username')
->required()
->lazy()
->maxLength(255)
->afterStateUpdated(function (SendMoneyAction $send_money_action, $state) {
$send_money_action->search($state);
}),
TextInput::make('amount')
->required()
->numeric()
->minValue(1)
->maxValue(auth()->user()->getBalance()),
])
->registerModalActions([
Action::make('send_money_confirmation')
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
->action(function () {

})
])
->action(function (SendMoneyAction $send_money_action, $action, array $data, $livewire) {
$livewire->replaceMountedAction('send_money_confirmation');
})
->modalHeading('Send Money To Any Distributor')
->modalSubmitActionLabel('Send Money')
])
14 replies