Sourabh
Sourabh
FFilament
Created by Sourabh on 10/16/2024 in #❓┊help
How do apply css on modal submit Action
I have tried the below code, but it is not work .
<?php
->extraAttributes(['class' => 'px-3'])
?>
<?php
->extraAttributes(['class' => 'px-3'])
?>
6 replies
FFilament
Created by Sourabh on 10/14/2024 in #❓┊help
Filament Registration page
No description
4 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Yeah, it's weird
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
I have checked with false also but still it is not working
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Okay, I will share the git repo with same issue
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
No, not created
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
No description
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Yes
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Yes, exactly
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
No, I am not searching anything, I am just clicking on the Archived tab. And for that below code executes (Just refer the 'archived' key):
<?php
public function getTabs(): array
{
return [
'new' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->whereNull('magento_id')
->where('is_enabled', false)
->where('is_archived', false)->orderBy('created_at', 'desc')),
'on_site' => Tab::make()
->label('On Site')
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_enabled', true)
->where('is_archived', false)),
'archived' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_archived', true)),
];
}?>
<?php
public function getTabs(): array
{
return [
'new' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->whereNull('magento_id')
->where('is_enabled', false)
->where('is_archived', false)->orderBy('created_at', 'desc')),
'on_site' => Tab::make()
->label('On Site')
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_enabled', true)
->where('is_archived', false)),
'archived' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_archived', true)),
];
}?>
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Thank you for your prompt response but I want to use filter as a table tab. Hope anyone can give some solution.
21 replies
FFilament
Created by Sourabh on 8/22/2024 in #❓┊help
import Action method examples does not exist.
Thank you for your time; the issue has been resolved.
11 replies
FFilament
Created by Sourabh on 8/22/2024 in #❓┊help
import Action method examples does not exist.
No description
11 replies
FFilament
Created by Sourabh on 8/22/2024 in #❓┊help
import Action method examples does not exist.
Yes, this issue occurred in my Laravel version 10.48, but after updating to Laravel version 11.21, the method examples are now being detected properly.
11 replies
FFilament
Created by Sourabh on 8/21/2024 in #❓┊help
Import csv data
I have resolved it by unset $this->data['sku'];
<?php
public function resolveRecord(): ?ProductVariant
{
// Code here

unset($this->data['sku']);

return $productVariant;

}?>
<?php
public function resolveRecord(): ?ProductVariant
{
// Code here

unset($this->data['sku']);

return $productVariant;

}?>
3 replies
FFilament
Created by Sourabh on 5/17/2024 in #❓┊help
Table Custom Column Update.
Yes, I achieved this in a different way. Instead of using a custom column, I implemented a slide-up modal because, in my case, the column width wasn't adjustable. So I created a custom 'Update' action for the table. When this action is triggered, it opens a slide-up modal containing a form with checkboxes and dropdowns.
8 replies
FFilament
Created by Sourabh on 7/31/2024 in #❓┊help
Modal Blade component background not showing transparent.
The addToPresentation method with the event this->dispatch('addProductsToLocalStorage', $cartData) isn't firing from the ProductQuote.php file, so it's not being detected in product-quote.blade.php.
<?php
public function addToPresentation() {
//code here
this->dispatch('addProductsToLocalStorage', $cartData);
}
?>
<?php
public function addToPresentation() {
//code here
this->dispatch('addProductsToLocalStorage', $cartData);
}
?>
<script>
Livewire.on('addProductsToLocalStorage', data => {
localStorage.setItem('productCart', JSON.stringify(data));
Livewire.dispatch('loadAllProductsFromLocalStorage');
});
<script>
<script>
Livewire.on('addProductsToLocalStorage', data => {
localStorage.setItem('productCart', JSON.stringify(data));
Livewire.dispatch('loadAllProductsFromLocalStorage');
});
<script>
17 replies
FFilament
Created by Sourabh on 7/31/2024 in #❓┊help
Modal Blade component background not showing transparent.
ProductResource.php table action code .
<?php
Tables\Actions\Action::make("product-presentation")->label("Add To Presentation")
->action(function ($record , ProductQuote $productQuote) {
$productQuote->mount($record->id);
$productQuote->addToPresentation($record);
})
?>
<?php
Tables\Actions\Action::make("product-presentation")->label("Add To Presentation")
->action(function ($record , ProductQuote $productQuote) {
$productQuote->mount($record->id);
$productQuote->addToPresentation($record);
})
?>
17 replies
FFilament
Created by Sourabh on 7/31/2024 in #❓┊help
Modal Blade component background not showing transparent.
I'm encountering another issue. When I use the "Add To Presentation" action in the Filament table, the Livewire event $this->dispatch('addProductsToLocalStorage', $cartData); isn't being triggered. How can I properly dispatch the event to store data in local storage from the Filament table?
17 replies
FFilament
Created by Sourabh on 7/31/2024 in #❓┊help
Modal Blade component background not showing transparent.
You're absolutely correct.
17 replies