Sujal Tamrakar
Sujal Tamrakar
FFilament
Created by L!am on 5/23/2024 in #❓┊help
Call to undefined method App\Models\OrderLine::orderLines()
You don't have a relationship named 'orderLines' in your model. Change the relationship in your OrderLinesRelationManager protected static string $relationship = 'orderLines';
23 replies
FFilament
Created by L!am on 5/23/2024 in #❓┊help
Call to undefined method App\Models\OrderLine::orderLines()
Can you post your OrderLinesRelationManager::class ?
23 replies
FFilament
Created by GHOST-117 on 2/16/2024 in #❓┊help
Action inside Another Action
You could also use steps instead of forms which will provide you with a wizard
13 replies
FFilament
Created by Sujal Tamrakar on 1/30/2024 in #❓┊help
Customizing repeater layout in custom form layout?
Thank you! Will try using the package, I think it would work
5 replies
FFilament
Created by BasketMC on 1/26/2024 in #❓┊help
Relationship Repeater in EditRecord saves before beforeSave?
5 replies
FFilament
Created by lazydog on 1/24/2024 in #❓┊help
Select Component
You can use afterStateUpdated method on Select. https://filamentphp.com/docs/3.x/forms/advanced#field-updates
4 replies
FFilament
Created by This PC on 1/23/2024 in #❓┊help
How to create multiple relationships with other tables?
5 replies
FFilament
Created by Luukd_2000 on 1/11/2024 in #❓┊help
How do I create a relation manager for a pivot table
I think you can use repeaters for this. - Add hasMany relationship model to pivot table. In your case, Transporter model should have something like :
public function transporterContainer()
{
return $this->hasMany(ContainerTransporter::class); // ContainerTransporter is model for pivot table
}
public function transporterContainer()
{
return $this->hasMany(ContainerTransporter::class); // ContainerTransporter is model for pivot table
}
- Use this relationship in repeater
3 replies
FFilament
Created by Sujal Tamrakar on 11/7/2023 in #❓┊help
Open relation manager create modal from table action
Sorry I think I was not clear. I have a resource :
class A extends Resource
{
...
public function static table(...)
{
return $table
->columns([...])
->filters([...])
->actions([
[An action here similar to CreateAction in header actions of BRelationManager that does the same thing ]
])
...
}

public static function getRelations()
{
return [
BRelationManager::class
];
}
class A extends Resource
{
...
public function static table(...)
{
return $table
->columns([...])
->filters([...])
->actions([
[An action here similar to CreateAction in header actions of BRelationManager that does the same thing ]
])
...
}

public static function getRelations()
{
return [
BRelationManager::class
];
}
I have BRelationManager :
class BRelationManager extends RelationManager
{
...
public function static table(...)
{
return $table
->columns([...])
->filters([...])
->headerActions([
Tables\Actions\CreateAction::make()
->label('Add B')
->icon('heroicon-o-plus')
->modalHeading('Add B for ' . $this->ownerRecord->title)
->modalWidth('7xl'),
])
...
}
class BRelationManager extends RelationManager
{
...
public function static table(...)
{
return $table
->columns([...])
->filters([...])
->headerActions([
Tables\Actions\CreateAction::make()
->label('Add B')
->icon('heroicon-o-plus')
->modalHeading('Add B for ' . $this->ownerRecord->title)
->modalWidth('7xl'),
])
...
}
4 replies
FFilament
Created by BATMAN on 7/19/2023 in #❓┊help
Different forms for create and edit
You can return different form schema in Create and Edit pages
7 replies
FFilament
Created by ghc on 7/17/2023 in #❓┊help
TextColumn::sortable() issue
I think you're looking for ->searchable(). I'm not sure if ->filterable() even exists.
5 replies