<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Feature extends Model
{
    protected $fillable = ['name', 'slug', 'category', 'description'];

    public function plans()
    {
        return $this->belongsToMany(Plan::class, 'plan_features')->withPivot('limit_value');
    }
}
