add: full multi-tenancy control

This commit is contained in:
Cauê Faleiros
2026-02-02 15:31:15 -03:00
commit c6ec92802b
1711 changed files with 258106 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Webkul\User\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\User\Contracts\Group as GroupContract;
class Group extends Model implements GroupContract
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'description',
];
/**
* The users that belong to the group.
*/
public function users()
{
return $this->belongsToMany(UserProxy::modelClass(), 'user_groups');
}
}