A robust and reusable User Management package for Laravel applications, developed and maintained by Iquesters.
This package provides authentication, role management, Google OAuth integration, and reCAPTCHA support. It also comes with configurable layouts, logos, and default behaviors for new users.
The User Management Package helps Laravel applications:
- Handle authentication and user roles
- Integrate Google login and One Tap authentication
- Customize login/register views with your own layout and branding
- Protect forms with reCAPTCHA
- Set default routes and roles for new users
It acts as a foundation for secure and modular user handling, which can be extended or used by other Iquesters packages.
- Install the package using Composer:
composer require iquesters/user-management- Run migrations to create required database tables:
php artisan migrate- Seed:
php artisan user-management:seedThe configuration file is published at config/user-management.php. You can override settings via this file or using .env variables.
Control which Blade templates are used for auth pages and the main app:
USER_MANAGEMENT_AUTH_LAYOUT=usermanagement::layouts.package
USER_MANAGEMENT_APP_LAYOUT=usermanagement::layouts.applayout_auth→ Layout used for login/register pageslayout_app→ Layout used for the main application
Set your application logo for auth pages:
USER_MANAGEMENT_LOGO=/images/logo.pngYou can use:
- Full URL:
https://example.com/logo.png - Absolute path:
/images/logo.png - Package asset:
img/logo.png - Package namespace:
usermanagement::img.logo.png
Protect your forms using Google reCAPTCHA:
USER_MANAGEMENT_RECAPTCHA_SITE_KEY=your-site-key
USER_MANAGEMENT_RECAPTCHA_SECRET_KEY=your-secret-keyEnable Google login or One Tap authentication:
USER_MANAGEMENT_GOOGLE_CLIENT_ID=your-client-id
USER_MANAGEMENT_GOOGLE_CLIENT_SECRET=your-client-secret
USER_MANAGEMENT_GOOGLE_REDIRECT_URI=https://your-app.com/auth/google/callbackSet default redirect routes and new user roles:
USER_MANAGEMENT_DEFAULT_AUTH_ROUTE=dashboard
USER_MANAGEMENT_DEFAULT_USER_ROLE=userdefault_auth_route→ The route where users are redirected after logindefault_user_role→ Default role for new users registering via Google OAuth