created Filament View with Livewire
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user