Files
larablog/app/Models/Stylevar.php
T
ak 263b98b218 Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
2026-08-12 01:15:38 +08:00

30 lines
493 B
PHP

<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
class Stylevar extends Model
{
protected $fillable = [
'title',
'value',
'visible',
];
protected function casts(): array
{
return [
'visible' => 'boolean',
];
}
public function scopeVisible(Builder $query): Builder
{
return $query->where('visible', true);
}
}