nuovo2023
nuovo2023
FFilament
Created by nuovo2023 on 10/26/2024 in #❓┊help
Multi-tenancy title
Hello, indeed that is what I was looking for, thanks for the help.
6 replies
FFilament
Created by nuovo2023 on 10/26/2024 in #❓┊help
Multi-tenancy title
Or: Resource X - Company A - APP NAME Resource Y - Company B - APP NAME
6 replies
FFilament
Created by nuovo2023 on 10/12/2024 in #❓┊help
ExportBulkAction
Oh, It makes sense. Thanks for the help
18 replies
FFilament
Created by nuovo2023 on 10/12/2024 in #❓┊help
ExportBulkAction
Can I trigger a download by using ->after()
18 replies
FFilament
Created by nuovo2023 on 10/12/2024 in #❓┊help
ExportBulkAction
Yes, one last question, when exporting is done it triggers a silent notification, how can I make it pop out?
18 replies
FFilament
Created by nuovo2023 on 10/12/2024 in #❓┊help
ExportBulkAction
No, it was me, I forgot to set keyType
18 replies
FFilament
Created by nuovo2023 on 10/12/2024 in #❓┊help
ExportBulkAction
It's like an event log table, the closest thing to an ID is uniqueid:
protected $table = 'cdr';
public $timestamps = false;
public $incrementing = false;
protected $primaryKey = 'uniqueid';
protected $keyType = 'string';


protected $fillable = [
'accountcode',
'src',
'dst',
'dcontext',
'clid',
'channel',
'dstchannel',
'lastapp',
'lastdata',
'start',
'answer',
'end',
'duration',
'billsec',
'disposition',
'amaflags',
'userfield',
'uniqueid',
'linkedid',
'peeraccount',
'sequence',
];
protected $table = 'cdr';
public $timestamps = false;
public $incrementing = false;
protected $primaryKey = 'uniqueid';
protected $keyType = 'string';


protected $fillable = [
'accountcode',
'src',
'dst',
'dcontext',
'clid',
'channel',
'dstchannel',
'lastapp',
'lastdata',
'start',
'answer',
'end',
'duration',
'billsec',
'disposition',
'amaflags',
'userfield',
'uniqueid',
'linkedid',
'peeraccount',
'sequence',
];
18 replies
FFilament
Created by nuovo2023 on 10/12/2024 in #❓┊help
ExportBulkAction
No description
18 replies
FFilament
Created by nuovo2023 on 10/12/2024 in #❓┊help
ExportBulkAction
No description
18 replies
FFilament
Created by nuovo2023 on 9/27/2024 in #❓┊help
Custom Action successRedirectUrl
Hello, thanks, I edited my previous message, to follow the rules.
12 replies
FFilament
Created by nuovo2023 on 9/27/2024 in #❓┊help
Custom Action successRedirectUrl
It gets the job done to some extent, but I'm wondering if there's a better alternative...also there's no redirect, only a manual Notification.
12 replies
FFilament
Created by nuovo2023 on 9/27/2024 in #❓┊help
Custom Action successRedirectUrl
I have this code on a Custom Page:
protected function getFormActions(): array
{
return [
Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->submit('save'),
];
}

public function save(): void
{
try {
// @phpstan-ignore-next-line
$data = $this->form->getState();
$this->provider->update($data);
} catch (Halt $exception) {
return;
}

Notification::make()
->success()
->title(__('filament-panels::resources/pages/edit-record.notifications.saved.title'))
->send();
}
protected function getFormActions(): array
{
return [
Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->submit('save'),
];
}

public function save(): void
{
try {
// @phpstan-ignore-next-line
$data = $this->form->getState();
$this->provider->update($data);
} catch (Halt $exception) {
return;
}

Notification::make()
->success()
->title(__('filament-panels::resources/pages/edit-record.notifications.saved.title'))
->send();
}
12 replies
FFilament
Created by nuovo2023 on 9/13/2024 in #❓┊help
Help hiding artifact from Resource
No description
2 replies
FFilament
Created by nuovo2023 on 9/5/2024 in #❓┊help
Replicating and successRedirectUrl
I found the solution, for future references purposes, it is something like this: ->successRedirectUrl(fn($replica) => route('filament.company.resources.business-hours.edit', [ 'tenant' => $replica->company_id, 'record' => $replica->id ])),
3 replies
FFilament
Created by nuovo2023 on 9/4/2024 in #❓┊help
FileUpload
Yup, your alternative also seems to have better performance.
7 replies
FFilament
Created by nuovo2023 on 9/4/2024 in #❓┊help
FileUpload
Don't tell me it can be solved with this: protected function getActions(): array { return [ Actions\DeleteAction::make() ->after(function (YourModel $record) { // delete single if ($record->photo) { Storage::disk('public')->delete($record->photo); } // delete multiple if ($record->galery) { foreach ($record->galery as $ph) Storage::disk('public')->delete($ph); } }), ]; }
7 replies
FFilament
Created by nuovo2023 on 6/18/2024 in #❓┊help
Send Model to widget
Thanks
4 replies
FFilament
Created by Mustafa_Dev on 6/17/2024 in #❓┊help
Repeater item index access?
6 replies
FFilament
Created by nuovo2023 on 6/13/2024 in #❓┊help
textarea
If I add a settins.index to getPages it will open the list, but I need the modal.
2 replies
FFilament
Created by nuovo2023 on 4/9/2024 in #❓┊help
Modal action polling
Thanks, actually, that helped me a lot.
6 replies