DevRaeph
DevRaeph
FFilament
Created by DevRaeph on 2/13/2024 in #❓┊help
Method Filament\Tables\Table::extremePaginationLinks does not exist.
3 replies
FFilament
Created by DevRaeph on 1/31/2024 in #❓┊help
MorphMany Relation buggy in relationshipManager.
I have discovered a problem and am not sure whether I am doing something wrong or it's a bug. After hours of trying, I still can't find a solution. The following initial situation. I have a Vehicle Model with a MorphTo relation:
public function Owner(): MorphTo
{
return $this->morphTo();
}
public function Owner(): MorphTo
{
return $this->morphTo();
}
Then a Customer Model with a MorphMany relation:
public function Vehicles(): MorphMany
{
return $this->morphMany(Vehicle::class, 'Owner');
}
public function Vehicles(): MorphMany
{
return $this->morphMany(Vehicle::class, 'Owner');
}
And a Carrier Model with a MorphMany relation:
public function Vehicles(): MorphMany
{
return $this->morphMany(Vehicle::class, 'owner');
}
public function Vehicles(): MorphMany
{
return $this->morphMany(Vehicle::class, 'owner');
}
Both should be able to own several Vehicles. Now, I inserted a RelationManager in my Customer Resource which should allow vehicles to be associated and removed on the Edit Page. Assignment of the first vehicle still works quite normally. As soon as I want to assign another one, the Select Box is empty and no more vehicles are displayed for assignment.
6 replies
FFilament
Created by DevRaeph on 6/14/2023 in #❓┊help
How to extend a Resource
I'm trying define a default "UserResource" in my package and want to give the ability to extend this resource and use it with own columns and parameters but keeping the same functionality. Now i have the problem when i extend my resource i have them two times in the navigation, is there any way to prevent this or should a do a complete new approach and create a Page with Actions instead?
3 replies