SuperUserDo
Issue With Modal on Table Column
Hello,
I have an issue with table column, when i add getStateUsing with new HtmlString(), a add wire:click openColumnHsitory with $recordId and $column (as pure string).
In my openColumnHistory() method i recieve everything so that is good, but was wondering how to accept data from params on front and to use in modal heading?
This is my page
1 replies
Custom Page Table Method Edit Action passing Current Record
Hello,
Is it possible to pass current record within view on custom filament page under table method?
I have tried accessing $record within view
I get
Also closure funciton within view do not work... Any idea how to pass current record?
3 replies
Searchable Has Many Issue
Greetings,
I was wondering how can i make column searchable by InventoryLocation name and also UserLocations.name but latest only.
I have tried whereHas with subQuery but it does not work..
Any idea how to make it work?
5 replies
Issue with Filament modal, Livewire And Lazy Load
Hi,
I had lazy loaded disabled and i am getting issue that i am unable to lazy load component even tho i did use ->with(), i think it is up to Livewire so tought to ask here if someone had similar issue?
2 replies
Database Notification Mark As Read
Hi fellas, i have this database notification Mark as read is working, but how do i hide that button after that notification is read?
<?php
namespace App\Notifications;
use App\Models\User;
use Filament\Notifications\Actions\Action;
use Filament\Notifications\Notification as FilamentNotification;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
class DatabaseNotification extends Notification
{
use Queueable;
public function __construct(
protected string $view,
protected string $title,
protected array $data = [],
) {}
public function via(object $notifiable): array
{
return ['database'];
}
public function toDatabase(User $notifiable): array
{
return FilamentNotification::make()
->title($this->title)
->body(view($this->view, ['data' => $this->data]))
->actions([
Action::make('Mark as read')
->button()
->markAsRead()
,
])
->getDatabaseMessage();
}
}
2 replies
Table Reordering Wont Trigger Model boot() method to clear cache
Hi, I have an issue when i am reordering table rows, it reorders it but it wont hit that Model's boot() method to clear cache.
In my boot method I have tried, updating, updated, saved... Any way around it?
2 replies
Implementation Of Tables within Expandable Row
Hi fellas, I Have a bit of challange to create expandable row with tabs within. And each tab should have own table (Preferablly livewire with implementation of Filament tables), is there any way to do it?
10 replies