<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ItemCategory extends Model
{
    protected $fillable = ['name', 'icon'];

    public function items()
    {
        return $this->hasMany(Item::class, 'category', 'name');
    }
}
