php-uptelligence/Models/PatternVariant.php
Snider e0d2325a20 refactor: move namespace from Core\Uptelligence to Core\Mod\Uptelligence
Aligns module namespace with Core PHP Framework conventions where
modules live under the Core\Mod\ namespace hierarchy. This follows
the monorepo separation work started in 40d893a.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 16:32:55 +00:00

31 lines
636 B
PHP

<?php
declare(strict_types=1);
namespace Core\Mod\Uptelligence\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* Pattern Variant - alternative implementations of a pattern.
*
* Allows storing different versions (e.g. dark mode, compact, etc.)
*/
class PatternVariant extends Model
{
use HasFactory;
protected $fillable = [
'pattern_id',
'name',
'code',
'notes',
];
public function pattern(): BelongsTo
{
return $this->belongsTo(Pattern::class);
}
}