ihabafia/permissions-admin
A Laravel package that provides an admin interface for managing roles and permissions. It streamlines creating, assigning, and maintaining access-control records, helping teams manage authorization settings without building custom CRUD screens.
composer require ...) and run any publish steps (php artisan vendor:publish --tag=...) if the package exposes config, migrations, or routes.routes/*.php files. As of 1.0.1, the package registers its routes behind the auth middleware, so route registration and middleware assignment are the primary integration points.php artisan route:list and confirm the package routes show auth middleware. Then visit one of those routes as a guest — you should be redirected to the login page — and again as an authenticated user to confirm normal behavior.auth to its routes. In day-to-day use, treat every package route as requiring a logged-in user. Wrap links, navigation items, and UI actions in @auth checks so users are not sent to a login redirect unexpectedly.auth middleware uses your application’s default guard. If the package is used in an API or token-based context, configure the guard explicitly (for example auth:sanctum) by wrapping the package routes in your own middleware group or by overriding the package’s route registration if it exposes that option.auth middleware only authenticates. Add policies, gates, or route-model binding checks for per-resource authorization. Do not rely on the package middleware alone for “can this user see this record?” decisions.actingAs($user) for happy-path feature tests and assert guest requests redirect to /login. Keep a dedicated test that hits each package route unauthenticated — this is the regression test that 1.0.1 effectively introduced.php artisan route:clear and, in production, php artisan route:cache again. Stale caches can make the new auth middleware appear absent or partially applied.auth may pick the wrong one and reject valid users. Check config/auth.php defaults and explicitly set the guard where needed.php artisan route:list --path=<package-prefix> -v to see exactly which middleware is attached. If guests are not redirected as expected, inspect the route’s middleware stack before assuming the package is at fault.withoutMiddleware as a fix. Disabling middleware in tests or controllers hides auth regressions and undermines the security fix in 1.0.1. Fix the guard or route grouping instead.composer.json, review the diff if the package is public, and add the guest-redirect assertion to your test suite so future releases cannot silently remove route protection.How can I help you explore Laravel packages today?