alveby / atrium-brands
Brands for Atrium: a directory of makers with logos, colours and websites
dev-main / 0.1.x-dev
2026-11-18 16:12 UTC
Requires
- php: ^8.3
- alveby/atrium: ^0.1
- illuminate/support: ^13.0
Requires (Dev)
- alveby/atrium-theme: ^0.1
- orchestra/testbench: ^11.0
- phpunit/phpunit: ^12.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-18 19:17:11 UTC
README
A directory of brands for Atrium: name, code, logo, brand colour, website and description. Brands have no pages of their own. Other modules link to them: a product in alveby/atrium-catalog shows its brand's name.
Install
composer require alveby/atrium-brands php artisan atrium:module:install alveby/atrium-brands
Add --demo to fill it with three brands. The catalog works with or without this module. Install it later, and the "Brand" field appears in the product form.
Link to a brand from your own module
use Atrium\Admin\Modules\Soft; use Atrium\Admin\Traits\HasSoftRelations; use Atrium\Brands\Models\Brand; public function brand(): BelongsTo { return $this->softBelongsTo(Brand::class, 'brand_id'); } // in getAdministrationFields() ...Soft::when(Brand::class, fn (): array => [ BelongsToField::make('brand_id')->label('Brand')->model(Brand::class), ]),
See "Links to other modules" in docs/modules.md.
Contributing
This repository is a read-only copy of packages/brands in AlveBy/atrium. Issues and pull requests go there.
License
MIT