Se modifican role y creacion ya que se estaba usando spattie
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user