From 271e36823d5d3becf61ec21c79e9089a5941c7b8 Mon Sep 17 00:00:00 2001 From: iridium34 Date: Mon, 10 Mar 2025 19:37:59 +0100 Subject: [PATCH] Created Filament Model --- app/Models/Filament.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app/Models/Filament.php 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); + } + +}