terumi
terumi
FFilament
Created by Hussain4real on 1/13/2024 in #❓┊help
Custom Page
@Hussain4real how?
8 replies
FFilament
Created by terumi on 11/16/2023 in #❓┊help
Persist toggleable column state between sessions
No: I have a table with these data: name | surname | created_at | updated_at some users want to see only name | created_at others want to see: name | surname | updated_at etc... Each user can set it via the icon on the right of the table, but as soon as, they loggout they have to set it again. Is there a way to persist their choice?
13 replies
FFilament
Created by Masea on 10/19/2023 in #❓┊help
TagsInput afterStateUpdated() doesnt work
I think that it is a bug or something
5 replies
FFilament
Created by terumi on 10/10/2023 in #❓┊help
How to fill form in a custom page?
I think I fixed it, It needed to resolve the model instance and pass it to the form object but now I have another problem: It disregards the relations, I cannot do something like created_by.name, contact_channel.name (which are relations defined in the model). The correct code (apart the relation thing) is this: Pages/ViewTicket:
class ViewTicket extends Page
{
use InteractsWithRecord;

protected static string $resource = TicketResource::class;
protected static string $view = 'filament.resources.ticket-resource.pages.view-ticket';

public function getMaxContentWidth(): ?string
{
return 'full';
}

public function mount(int | string $record): void
{
$this->record = $this->resolveRecord($record);
}
}
class ViewTicket extends Page
{
use InteractsWithRecord;

protected static string $resource = TicketResource::class;
protected static string $view = 'filament.resources.ticket-resource.pages.view-ticket';

public function getMaxContentWidth(): ?string
{
return 'full';
}

public function mount(int | string $record): void
{
$this->record = $this->resolveRecord($record);
}
}
filament/resources/ticket-resource/pages/view-ticket (I resolved the object and passed it here)
<x-filament-panels::page>
@livewire('tickets.view-ticket', ['ticket' => $this->record])
</x-filament-panels::page>
<x-filament-panels::page>
@livewire('tickets.view-ticket', ['ticket' => $this->record])
</x-filament-panels::page>
6 replies
FFilament
Created by terumi on 10/10/2023 in #❓┊help
How to fill form in a custom page?
I created a form using the artisan command and it outputs me
Typed property App\Livewire\Tickets\ViewTicket::$record must not be accessed before initialization
Typed property App\Livewire\Tickets\ViewTicket::$record must not be accessed before initialization
on the viewticket livewire component 😦
6 replies
FFilament
Created by terumi on 10/9/2023 in #❓┊help
Custom page model instance
❤️ thank you again!
7 replies
FFilament
Created by terumi on 10/9/2023 in #❓┊help
Custom page model instance
Thank you Leandro! That did the trick for me! Can you please show me, where did you find it in the documentation?
7 replies