Download the PHP package properos/laravel-users without Composer
On this page you can find all versions of the php package properos/laravel-users. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-users
Properos Users Package
Laravel 11 package for user management, authentication, authorization (roles & permissions), and user profiles.
Requirements
- Laravel: 11.x
- PHP: 8.2+
- Database: MySQL 5.7+ or MariaDB 10.3+
Dependencies
This package requires the following packages:
| Package | Version | Purpose |
|---|---|---|
laravel/sanctum |
^4.0 | API authentication |
intervention/image |
^3.0 | Image processing (avatars, uploads) |
intervention/image-laravel |
^1.0 | Laravel integration for Intervention Image |
laravel/ui |
^4.0 | Authentication scaffolding |
laravel/socialite |
^5.0 | Social authentication (optional) |
Installation
1. Install the package
2. Publish configuration files
3. Run migrations
This will create the following tables:
usersuser_addressesuser_profilesrolespermissionsuser_rolesuser_permissionsrole_permissionsapi_credentialsuser_activity_logs
4. Run seeders (optional)
Add the following to database/seeders/DatabaseSeeder.php:
Then run:
Configuration
1. Database Configuration
In config/database.php, ensure MySQL configuration uses:
2. Authentication Configuration
In config/auth.php, update the guards and providers:
3. Service Providers
In config/app.php, add to the providers array:
4. Middleware Registration
In app/Http/Kernel.php, register the middleware:
5. Social Authentication (Optional)
If you want to enable social authentication (Facebook, Google), install Socialite:
Add to config/services.php:
Add to your .env:
6. Environment Variables
Add to your .env:
Asset Compilation
1. Install npm dependencies
2. Configure webpack.mix.js
Add to webpack.mix.js:
3. Configure bootstrap.js
In resources/assets/bootstrap.js, add:
4. Compile assets
Usage
Using Models
Using Routes
Add to routes/web.php:
Using Middleware
Using Classes
Features
User Management
- Create, read, update, delete users
- User profiles and addresses
- Avatar upload and processing
- User activity logging
Authentication
- Email/password authentication
- Social authentication (Facebook, Google)
- Password reset
- API authentication via Sanctum
Authorization
- Role-based access control (RBAC)
- Permission-based access control
- Flexible role/permission assignment
- Middleware for route protection
User Profile
- First name, last name, email, phone
- Company information
- Avatar management
- Address management
Activity Logging
- Automatic user activity tracking
- Login/logout logging
- Custom action logging
Troubleshooting
Migration errors
If you get migration errors about duplicate tables:
Service provider not found
Make sure the service provider is registered in config/app.php:
Middleware not working
Ensure middleware is registered in app/Http/Kernel.php with the correct aliases.
Image upload not working
- Check that
intervention/imageandintervention/image-laravelare installed - Ensure the
publicdisk is configured inconfig/filesystems.php - Check file permissions on storage/app/public
Vue components not rendering
- Ensure assets are compiled:
npm run prod - Check that webpack.mix.js is configured correctly
- Verify that bootstrap.js includes the required dependencies
Sanctum authentication not working
- Ensure
laravel/sanctumis installed - Run
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider" - Add
Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStatefultoapp/Http/Kernel.php - Configure stateful domains in
config/sanctum.php
Breaking Changes from Previous Versions
- Laravel Version: Requires Laravel 11.x (minimum)
- PHP Version: Requires PHP 8.2+
- Intervention Image: Updated to v3 with new API
- Database Collation: Default collation is now
utf8_general_ci
License
MIT License. See LICENSE file for details.
All versions of laravel-users with dependencies
intervention/image Version ^3.0
intervention/image-laravel Version ^1.0
laravel/ui Version ^4.0