created Filament View with Livewire

This commit is contained in:
2025-04-22 18:45:56 +02:00
parent 77b1b85f1e
commit cf81ce810b
7 changed files with 434 additions and 19 deletions
+3 -3
View File
@@ -31,19 +31,19 @@ class Filament extends Model
// Filament belongs to a type
public function type()
{
return $this->belongsTo(FilamentType::class);
return $this->hasOne(FilamentType::class);
}
// Filament belongs to a manufacturer
public function manufacturer()
{
return $this->belongsTo(Manufacturer::class);
return $this->hasOne(Manufacturer::class);
}
// Filament belongs to a color
public function color()
{
return $this->belongsTo(Color::class);
return $this->hasOne(Color::class);
}
}