mimisk/stagebox

Laravel package for stagebox management with owner scoping and slug generation.

Maintainers

Package info

github.com/MimisK13/laravel-stagebox

pkg:composer/mimisk/stagebox

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-04-23 20:18 UTC

This package is auto-updated.

Last update: 2026-04-23 20:25:20 UTC


README

Tests Latest Version on Packagist Total Downloads

mimisk/stagebox is a Laravel package for managing stagebox records with built-in migrations and automatic slug generation.

Installation

Via Composer

composer require mimisk/stagebox

Usage

This package provides:

  • Mimisk\Stagebox\Models\Stagebox Eloquent model
  • internal package migration for the stageboxes table
  • owner-scoped stageboxes via polymorphic relation (stageboxable_type / stageboxable_id)

Run migrations:

php artisan migrate

Use the model:

use Mimisk\Stagebox\Models\Stagebox;

$stagebox = Stagebox::create([
    'name' => 'A',
    'channels' => 12,
    'returns' => 4,
    'color' => 'brown',
    'notes' => 'Drum Riser',
]);

The slug is generated automatically from name when not provided.

Fields:

  • name (string)
  • slug (unique per owner scope)
  • channels (unsigned tiny integer)
  • returns (unsigned tiny integer, default 0)
  • color (string, default black)
  • notes (nullable text)
  • timestamps

Query examples:

use Mimisk\Stagebox\Models\Stagebox;

$all = Stagebox::orderBy('name')->get();
$single = Stagebox::where('slug', 'a')->first();

Testing

composer test

Credits

License

MIT. Please see the license file for more information.