diff --git a/app/Models/Filament.php b/app/Models/Filament.php new file mode 100644 index 0000000..7122a4e --- /dev/null +++ b/app/Models/Filament.php @@ -0,0 +1,41 @@ +belongsTo(FilamentType::class); + } + + // Filament belongs to a manufacturer + public function manufacturer() + { + return $this->belongsTo(Manufacturer::class); + } + + // Filament belongs to a color + public function color() + { + return $this->belongsTo(Color::class); + } + +}