NOTE: SEE THE docs/upgrading.md
file for important upgrade instructions.
What's Changed
- Full uuid/guid/ulid support by @erikn69 in #2089
- Refactor: Change static properties to non-static by @olivernybroe in #2324
- Fix Role::withCount if belongsToMany declared by @xenaio-daniil in #2280
- Fix: Lazily bind dependencies by @olivernybroe in #2321
- Avoid loss of all permissions/roles pivots on sync error by @erikn69 in #2341
- Fix delete permissions on Permissions Model by @erikn69 in #2366
- Detach users on role/permission physical deletion by @erikn69 in #2370
- Rename clearClassPermissions method to clearPermissionsCollection by @erikn69 in #2369
- Use anonymous migrations (for L8+) by @erikn69 in #2374
- [BC] Return string on getPermissionClass(), getRoleClass() by @erikn69 in #2368
- Only offer publishing when running in console by @erikn69 in #2377
- Don't add commands in web interface context by @angeljqv in #2405
- [BC] Fix Role->hasPermissionTo() signature to match HasPermissions trait by @erikn69 in #2380
- Force that getPermissionsViaRoles, hasPermissionViaRole must be used only by authenticable by @erikn69 in #2382
- fix BadMethodCallException: undefined methods hasAnyRole, hasAnyPermissions by @erikn69 in #2381
- Add PHPStan workflow with fixes by @erikn69 in #2376
- Add BackedEnum support by @drbyte in #2391
- Drop PHP 7.3 support by @angeljqv in #2388
- Drop PHP 7.4 support by @drbyte in #2485
- Test against PHP 8.3 by @erikn69 in #2512
- Fix call to an undefined method Role::getRoleClass by @erikn69 in #2411
- Remove force loading model relationships by @erikn69 in #2412
- Test alternate cache drivers by @erikn69 in #2416
- Use attach instead of sync on traits by @erikn69 in #2420
- Fewer sqls in syncRoles, syncPermissions by @erikn69 in #2423
- Add middleware using static method by @jnoordsij in #2424
- Update PHPDocs for IDE autocompletion by @erikn69 in #2437
- [BC] Wildcard permissions algorithm performance improvements (ALERT: Breaking Changes) by @danharrin in #2445
- Add withoutRole and withoutPermission scopes by @drbyte in #2463
- Add support for service-to-service Passport client by @SuperDJ in #2467
- Register OctaneReloadPermissions listener for Laravel Octane by @erikn69 in #2403
- Add guard name to exceptions by @drbyte in #2481
- Update contracts to allow for UUID by @drbyte in #2480
- Avoid triggering eloquent.retrieved event by @erikn69 in #2498
- [BC] Rename "Middlewares" namespace to "Middleware" by @drbyte in #2499
@haspermission
directive by @axlwild in #2515- Add guard parameter to can() by @drbyte in #2526
New Contributors
- @xenaio-daniil made their first contribution in #2280
- @JensvandeWiel made their first contribution in #2336
- @fsamapoor made their first contribution in #2361
- @yungifez made their first contribution in #2394
- @HasanEksi made their first contribution in #2418
- @jnoordsij made their first contribution in #2424
- @danharrin made their first contribution in #2445
- @SuperDJ made their first contribution in #2467
- @ChillMouse made their first contribution in #2438
- @Okipa made their first contribution in #2492
- @edalzell made their first contribution in #2494
- @sirosfakhri made their first contribution in #2501
- @juliangums made their first contribution in #2516
- @nnnnnnnngu made their first contribution in #2524
- @axlwild made their first contribution in #2515
- @shdehnavi made their first contribution in #2527
Full Changelog: 5.11.1...6.0.0