Search by

alveby / atrium-brands

xiregroup

Brands for Atrium: a directory of makers with logos, colours and websites

Package info

github.com/AlveBy/atrium-brands

Homepage

Issues

Type:atrium-module

pkg:composer/alveby/atrium-brands

Statistics

Installs: 0

Dependents: 1

Suggesters: 1

Stars: 0

dev-main / 0.1.x-dev 2026-11-18 16:12 UTC

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