Closed ahmadhidayatullah closed 3 years ago
Make sure to publish the migrations from the Spatie\Permission\PermissionServiceProvider
, as well as add the HasRoles
trait to your User model. Those steps are not documented in the installation, but are absolutely necessary to get this package working.
Hi, i just instaled this package and i got a message error
Call to undefined method App\Models\User::roles()
andCall to undefined method App\Models\User::permissions()
.