mimisk / stagebox
Laravel package for stagebox management with owner scoping and slug generation.
v0.1.0
2026-04-23 20:18 UTC
Requires
- php: ^8.4
- illuminate/support: ^12.0|^13.0
- mimisk/laravel-toolbox: ^0.0.1
Requires (Dev)
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^4.0
- phpunit/phpunit: ^11.5.3|^12.0.1
README
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\StageboxEloquent model- internal package migration for the
stageboxestable - 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, default0)color(string, defaultblack)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.