Se modifican role y creacion ya que se estaba usando spattie

This commit is contained in:
2026-03-12 13:00:56 -06:00
parent ed2184827d
commit 7c1374f4a1
5 changed files with 23 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use App\Models\Area;
use Spatie\Permission\Models\Role as SpatieRole;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Role extends SpatieRole
{
protected $guarded = [];
public function areas(): BelongsToMany
{
return $this->belongsToMany(Area::class);
}
}