sdousley
sdousley
FFilament
Created by sdousley on 4/9/2024 in #❓┊help
Table Column - end of string
Ah cool, thanks @Leandro Ferreira I thoguth formatState would be like some CSS that gets applied to it, that's got the job
5 replies
FFilament
Created by sdousley on 4/2/2024 in #❓┊help
Missing required parameter for View route
why would I (now) have to add that getRedirectUrl() method when it used to work?
8 replies
FFilament
Created by sdousley on 4/2/2024 in #❓┊help
Missing required parameter for View route
yep, adding ->relationship() to the Repeater has sorted that out
8 replies
FFilament
Created by sdousley on 4/2/2024 in #❓┊help
Missing required parameter for View route
Other than adding the new Step and Repeater (within the steps) didn't add anything to CreateCustomer, but removing that, I still had the same error. Adding the getRedirectUrl() method you pasted made it work now (though it didn't save the repeater, but that is likely me not fully completing the required steps
8 replies
FFilament
Created by sdousley on 4/2/2024 in #❓┊help
Using Tailwind
That's got it ty @<Λmir>, kinda annoying to have to do that to then copy/paste a load of stuff out the Tailwind core, but it gets the job done 🙂
5 replies
FFilament
Created by sdousley on 3/30/2024 in #❓┊help
Livewire Component within tabs in Resource View
Either way, I will mark the above as the solution, as it actually answered my question thanks @KeyMe
10 replies
FFilament
Created by sdousley on 3/30/2024 in #❓┊help
Livewire Component within tabs in Resource View
I have, however, since found that by adding the RelationsManagers for models and defining the code in the view customer blade template to show the relations, that actually works as I was trying to make work with the tabs. Plus being more natively filament, is probably better
10 replies
FFilament
Created by sdousley on 3/30/2024 in #❓┊help
Livewire Component within tabs in Resource View
OK yes, that gets the customer into the Livewire Component, it was the $infolist->getRecord() that I was missing.
10 replies
FFilament
Created by sdousley on 3/30/2024 in #❓┊help
Livewire Component within tabs in Resource View
Or if there's a better way of doing this, I'm more than open to other suggestions
10 replies
FFilament
Created by sdousley on 3/30/2024 in #❓┊help
Livewire Component within tabs in Resource View
Sorry, yes, I should have included that, so in App\Filamenet\Resources\CustomerResource I have the infolist method, and in that, i have:
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
InfolistsComponents\Tabs::make('Tabs')
->columnSpanFull()
->tabs([
// other tabs InfolistsComponents\Tabs\Tab::make('VIPs')
->columns(1)
->schema([
InfolistsComponents\Livewire::make(ListVIPs::class)
]),
]);
}
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
InfolistsComponents\Tabs::make('Tabs')
->columnSpanFull()
->tabs([
// other tabs InfolistsComponents\Tabs\Tab::make('VIPs')
->columns(1)
->schema([
InfolistsComponents\Livewire::make(ListVIPs::class)
]),
]);
}
ListVIPs is the Livewire component, which has the table method to display the results, I'm guessing I just need some way to filter in the ->query() method, but that's where I'm unsure
public function table(Table $table): Table
{
return $table
->query(VIP::query())
->columns([
Tables\Columns\TextColumn::make('id')
->searchable()->label('ID'),
Tables\Columns\TextColumn::make('name'),
])
->filters([
//
])
->actions([
//
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
//
]),
]);
}
public function table(Table $table): Table
{
return $table
->query(VIP::query())
->columns([
Tables\Columns\TextColumn::make('id')
->searchable()->label('ID'),
Tables\Columns\TextColumn::make('name'),
])
->filters([
//
])
->actions([
//
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
//
]),
]);
}
10 replies