spatie/laravel-permission

Access to undeclared static property Spatie\Permission\PermissionRegistrar::$pivotRole

moijafcor opened this issue · 1 comments

Describe the bug

Access to undeclared static property Spatie\Permission\PermissionRegistrar::$pivotRole

blames

# xxxx_xx_xx_xxxxxx_create_permission_tables.php

6▕  use Spatie\Permission\PermissionRegistrar;

....

88▕             $table->unsignedBigInteger(PermissionRegistrar::$pivotRole);

defined in:

class PermissionRegistrar
{

    ....
    public string $pivotRole;
    .....

Versions

laravel/framework                  v10.37.1 The Laravel Framework.
spatie/laravel-permission          6.2.0    Permission handling for Laravel 8.0 and up

*** Environment ***

  Laravel Version .......................................................................................................................... 10.37.1  
  PHP Version ............................................................................................................................... 8.1.13  
  Composer Version ........................................................................................................................... 2.4.4  

*** Database version: ***

MySQL 8

Duplicate of #2577.