pauldragoonis
pauldragoonis
FFilament
Created by pauldragoonis on 9/27/2024 in #❓┊help
redirect after creating entity
I've put a afterCreate() into my CreateDog.php file. I can confirm it does call that hook it isn't honouring my redirect, and just redirecting to the default location i've tried redirect()->to(..) and return redirect->route(....) Why is it not working? what's the correct way to take over the redirect flow?
6 replies
FFilament
Created by pauldragoonis on 9/27/2024 in #❓┊help
Customizing navigation items
I don't want all the Resources to show up in the left menu.. I checked the docs and it says:
protected static bool $isHiddenInNavigation = true;
protected static bool $isHiddenInNavigation = true;
I added these flags and also fully cleared the cache, and they're still showing 🙈 Here is the auto-generated Panel that I'm using. Help? https://gist.github.com/dragoonis/384ab536aec9031a6d932774de92d4af
4 replies
FFilament
Created by pauldragoonis on 9/27/2024 in #❓┊help
Custom Table Values
Hey, I have a List table view here, and my entity (model) doesn't actually have the values .. they're in another table. I need to control the point where it grabs the value. I saw on the v1.0 docs (accidentally landed there) that we can do Column->getValueUsing(), which I thought might have been right, but i'm on v3 now. Here is the code I was trying, before I discovered getValueUsing() is deprecated technique
php
return $table
->columns([

TextColumn::make('name')
->searchable(),
Column::make('benefits')
->label('Benefits')
->getValueUsing($callback = fn($record) => $this->getBenefitsTextFromIngredient($record)),
php
return $table
->columns([

TextColumn::make('name')
->searchable(),
Column::make('benefits')
->label('Benefits')
->getValueUsing($callback = fn($record) => $this->getBenefitsTextFromIngredient($record)),
8 replies