<?php

namespace Modules\User\Models;

use Illuminate\Database\Eloquent\Model;

class Module extends Model
{
    protected $fillable = ['name', 'path', 'meta'];

    protected $casts = ['meta' => 'array'];

    public function users()
    {
        return $this->belongsToMany(User::class,'user_modules');
    }
}
