shabxs
Missing required parameter for multitenancy
I receive this error once I create a record .
Missing required parameter for [Route: filament.app.resources.materials.edit] [URI: app/{tenant}/materials/{record}/edit] [Missing parameter: record].
here "app" is the panel name
"tenant" is the tenant id
"materials" is the resource name
5 replies
How to access record in infolist
I have created a named infolist inside a relationmanager resource as below
use Filament\Infolists\Components\TextEntry;
use Filament\Infolists\Infolist;
public function productInfolist(Infolist $infolist): Infolist
{
return $infolist
->record($this->product) // How to get access to the current record
->schema([
TextEntry::make('name'),
TextEntry::make('category.name'),
// ...
]);
}
How do i access the current record not the ownerrecord.
4 replies
Livewire pest plugin code replication
How can we get the same result using pest livewire plugin function
Livewire::withQueryParams(['search' => 'hair'])
->test(SearchPosts::class)
->assertSee('Testing the first')
ie livewire->(SearchPost::class)->assertSee('Testing the first')
how do I use the query params in the second statement
5 replies