<?php
namespace App\Models;

use App\Models\Concerns\HasPublicId;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;

final class Permission extends Model
{
    use HasPublicId;


protected $fillable = ['public_id','name','slug','module','action'];
public function roles(): BelongsToMany { return $this->belongsToMany(Role::class); }
}
