mostafamaklad/laravel-permission-mongodb
Manage roles and permissions in Laravel with MongoDB. This package offers a MongoDB-backed implementation of familiar Laravel permission features, letting you assign roles, permissions, and direct user permissions through Eloquent-style APIs.
This assessment is for the v5.0.0-alpha release. The release notes are intentionally terse — PHP 8.0 support and updated model relations — so treat the upgrade guide and composer.json as the source of truth before adopting.
composer.json and check the new constraints: PHP (^8.0?), illuminate/* / laravel/framework ranges, and any newly required extensions. The “PHP 8.0 support” note may mean PHP 7.x was dropped, which is a breaking change for older CI images.^5.0:
composer require vendor/package:5.0.0-alpha --with-all-dependencies
Replace vendor/package with the actual package name. Commit the lockfile.CHANGELOG.md / GitHub release for v5.0.0-alphaUPGRADING.md or migration notes for the relation changesconfig/ defaults and any publishable migrationswith(), load(), whereHas(), pivot access). Only then migrate write paths.toArray() / API resources) of related modelswith() in list endpoints and enable Model::preventLazyLoading() in non-production to catch accidental lazy loads introduced by relation changes.composer why-not vendor/package 5.0.0-alpha to surface conflicting Laravel/framework constraints early.^5.0 until a stable v5 is published. Pin 5.0.0-alpha exactly and expect breaking changes between alphas.composer.json require block — do not infer from the note.composer show vendor/package to confirm the installed versionphp artisan about to confirm PHP and Laravel versionsModel::preventLazyLoading() and query logging to inspect generated SQLOverall: the release is worth tracking, but the notes are too sparse to justify production adoption. Validate the PHP constraint change and relation behavior in a sandbox and test suite first; treat v5.0.0-alpha as an evaluation target, not a day-to-day dependency.
How can I help you explore Laravel packages today?