<?php

namespace Modules\User\Models;

use Illuminate\Database\Eloquent\Model;

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

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

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