Updated FilamentType Model

This commit is contained in:
2025-03-10 19:38:23 +01:00
parent 271e36823d
commit 2579d87f36
+7
View File
@@ -7,9 +7,16 @@ use Illuminate\Database\Eloquent\Model;
class FilamentType extends Model
{
protected $table = 'filament_types';
protected $primaryKey = 'id';
protected $fillable = [
'name',
'description',
];
// FilamentType has many filaments
public function filaments()
{
return $this->hasMany(Filament::class);
}
}