Code A
How to synchronize filters between Livewire components in Filament Dashboard Custome Page?
I have a situation where I have multiple Livewire Components, such as an Order component and a Driver component. When I interact with the Order component, the Driver component updates automatically. However, the AddressMapWidget does not update automatically, and I have to manually reload the page to see the changes in the AddressMapWidget. Could this be because the AddressMapWidget extends from MapWidget rather than from a Livewire Component? Is there a solution to ensure that the AddressMapWidget updates automatically when I interact with the Order component?
5 replies
Give default value to TextInput when Edit Data
Sorry, I don't understand what you mean, maybe you can explain it or maybe there are references that I can see or read?
but thank you very much for helping me, I have found a solution for that even though it may not be the best practice. but it solves my problem. thank you very much
16 replies
Give default value to TextInput when Edit Data
example I want to create data like this
DB::table('order_status_histories')->insert($data_order_status_history);
now the variable $data_order_status_history contains one of them in group:make
the example above is just one example
how to get the data in Group::Make?
16 replies
Give default value to TextInput when Edit Data
thanks that can help me. but when craete data how to get data that is in Group::make
because when I dd($data) it is data name, and other data that is in Group::make is not in $data
class OrderTask extends CreateRecord
{
protected static string $resource = OrderResource::class;
protected function handleRecordCreation(array $data): Model
{
dd($data);
// other data
}}
16 replies
Give default value to TextInput when Edit Data
Yes, make it in the model?
Like this?
class Order extends Model
{
use HasFactory;
protected $fillable = [
'partner_id',
'address_id',
'status',
];
// other relation
// partner_id from table users
public function partnerUser()
{
return $this->belongsTo(User::class, 'partner_id');
}
}
16 replies