Files
RomhackPlaza/app/Models/Category.php

34 lines
1.3 KiB
PHP
Raw Normal View History

2026-06-10 11:04:26 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property array<array-key, mixed>|null $restricted_to
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereRestrictedTo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Category extends Model
{
protected $fillable = ['name', 'slug', 'restricted_to'];
protected $casts = [
'restricted_to' => 'array',
];
}