groups and roles

This commit is contained in:
DigitalInfinity committed 2026-06-02 15:46:00 +00:00
1 parent f82d3f59e0
commit 0b78ea4d03
21 files changed
+412 -27

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Group extends Model
{
protected $fillable = ['name', 'title', 'description'];
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class);
}
}