Fogzy
Fogzy
FFilament
Created by Fogzy on 9/16/2024 in #❓┊help
Lower payload size
https://github.com/filamentphp/filament/issues/9304 I see this is a known issue and we might be getting some perf upgrades in Filament 4. I'm closing this.
3 replies
FFilament
Created by Saifallak on 11/26/2023 in #❓┊help
reuse existing resource in select (createOptionForm)
Yeah I did the same workaround, but anyway, would be nicer to be able to use the method directly. That would mean that the form object has to be visible for the createOptionForm closure… Thanks anyway.
5 replies
FFilament
Created by Saifallak on 11/26/2023 in #❓┊help
reuse existing resource in select (createOptionForm)
I stumbled upon this when asking the same thing. Did you find a way to reuse the resource form?
5 replies
FFilament
Created by Fogzy on 4/23/2024 in #❓┊help
Global Scopes not being ignored on select
Had to add this to get it working:
->afterStateHydrated(function (Select $component): void {
/** @var Product|null $product */
$product = $component->getRecord();

if (! $product) {
return;
}

$ids = DB::table('category_product')
->select('category_id')
->where('product_id', $product->id)
->pluck('category_id');
$component->state($ids);
})
->afterStateHydrated(function (Select $component): void {
/** @var Product|null $product */
$product = $component->getRecord();

if (! $product) {
return;
}

$ids = DB::table('category_product')
->select('category_id')
->where('product_id', $product->id)
->pluck('category_id');
$component->state($ids);
})
5 replies
FFilament
Created by Fogzy on 4/23/2024 in #❓┊help
Global Scopes not being ignored on select
@toeknee I don't think that's any different from what I already have?
public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()->withoutGlobalScopes();
}
public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()->withoutGlobalScopes();
}
But anyway, tried specifying the specific scopes and still no luck
5 replies
FFilament
Created by Fogzy on 11/25/2023 in #❓┊help
SpatieTagsColumn pluck() on null after update
I think it's OK, just thought that since it worked before the update, it has to be something with the Spatie Tags plugin. Thanks for your time.
9 replies
FFilament
Created by Fogzy on 11/25/2023 in #❓┊help
SpatieTagsColumn pluck() on null after update
yeah that’s understandable
9 replies
FFilament
Created by Fogzy on 11/25/2023 in #❓┊help
SpatieTagsColumn pluck() on null after update
So I removed this:
protected $casts = [
'tags' => 'array',
];
protected $casts = [
'tags' => 'array',
];
And got it working again.
9 replies
FFilament
Created by Fogzy on 11/25/2023 in #❓┊help
SpatieTagsColumn pluck() on null after update
@Dan Harrin Dan, I'm sorry I have to tag you, I currently tried updating again and still have this error. Do you have any idea how to solve this?
9 replies
FFilament
Created by Michal Čabala on 11/25/2023 in #❓┊help
Deploy to shared hosting, not loading assets.
@Michal Čabala Michale, is there any way to change the root directory of the vhost to /public, so you can get rid of the root htaccess?
16 replies
FFilament
Created by JWH on 11/25/2023 in #❓┊help
How do I find plugins which I've starred? ⭐
well you can always open the plugin on github and star it there?
12 replies
FFilament
Created by qcol on 10/19/2023 in #❓┊help
Custom hierarchical (tree) table - filament or custom row by row?
I would do this using a query string, e.g. parentId. Starting with no parentId, I would limit the query to only parent_id = NULL (level=0). Then I would put links in each row to the same table, but with the query string parentId=$row->id. You would then change the base query to look only for records with parent_id = $parentId.
3 replies
FFilament
Created by Fogzy on 10/25/2023 in #❓┊help
Multiple slashes (/) in the slug lead to 404
thanks, I'm trying that, but I must be missing something. I don't have the model in this static context:
public static function getPages(): array
{
return [
'index' => Pages\ListCategories::route('/'),
'create' => Pages\CreateCategory::route('/create'),
'edit' => CategoryResource::getUrl('edit', ['record' => $dontHave]), // dont have this variable
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListCategories::route('/'),
'create' => Pages\CreateCategory::route('/create'),
'edit' => CategoryResource::getUrl('edit', ['record' => $dontHave]), // dont have this variable
];
}
5 replies
FFilament
Created by rajul on 9/9/2023 in #❓┊help
How to get active filters on table inside list resource page widget.
I have the same problem, there seems to be no way of doing it on the $table object. I wanted to activate pagination when no filters are selected.
4 replies
FFilament
Created by uzdacpdz (Doug Dimmadome) on 8/10/2023 in #❓┊help
Default grouping direction
did you figure this out? i'm trying to group by order_number but sort by order_date. this works when the order_date is the same, but when changed, it creates separate groups
12 replies