| Path : /var/www/html/solarwindia/app/Models/ |
| Current File : //var/www/html/solarwindia/app/Models/ModulePermission.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ModulePermission extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'module_id', 'user_id', 'has_access'
];
public function users() {
return $this->belongsToMany('App\User');
}
public function modules() {
return $this->belongsToMany('App\Models\Module');
}
}