packagist spatie/laravel-permission 8.5.1

3 hours ago

Fixed

  • Preserve the active team context when permission:create-role is called with --team-id while teams are disabled. The command still warns and skips role creation, and normal role creation without teams is unchanged. Thanks to @shalinidevi-dev in #2993.
  • Cover both null and existing team contexts in the command regression tests.

Documentation

  • Correct the HasAssignedModels config comment and the custom team foreign key example.
  • Document permission.cache.column_names_except, its defaults, and the attributes that must remain cached.
  • Include the documentation-only global-scope/cache-isolation guidance and dead-link fixes already on main (#2985, #2987).

No breaking changes or dependency requirement changes.

Full Changelog: 8.5.0...8.5.1

Don't miss a new laravel-permission release

NewReleases is sending notifications on new releases.